From 0096afb899fe72f8049a3fcc8ce9df6b4cf2e321 Mon Sep 17 00:00:00 2001 From: Tobias Koppers Date: Wed, 17 Jul 2024 23:11:30 +0200 Subject: [PATCH] nitpicks --- crates/turbo-tasks/src/task/function.rs | 6 ------ crates/turbo-tasks/src/task/task_input.rs | 2 +- 2 files changed, 1 insertion(+), 7 deletions(-) diff --git a/crates/turbo-tasks/src/task/function.rs b/crates/turbo-tasks/src/task/function.rs index 042218c6ae5526..dcd737025127bf 100644 --- a/crates/turbo-tasks/src/task/function.rs +++ b/crates/turbo-tasks/src/task/function.rs @@ -165,7 +165,6 @@ macro_rules! task_fn_impl { { #[allow(non_snake_case)] fn functor(&self, _this: Option, arg: &ConcreteTaskInput) -> Result { - #[allow(unused_parens)] let ($($arg),*) = <($($arg),*) as TaskInput>::try_from_concrete(arg)?; let task_fn = self.clone(); @@ -192,7 +191,6 @@ macro_rules! task_fn_impl { { #[allow(non_snake_case)] fn functor(&self, _this: Option, arg: &ConcreteTaskInput) -> Result { - #[allow(unused_parens)] let ($($arg),*) = <($($arg),*) as TaskInput>::try_from_concrete(arg)?; let task_fn = self.clone(); @@ -222,7 +220,6 @@ macro_rules! task_fn_impl { let task_fn = self.clone(); let recv = Vc::::from(this.expect("Method need to have a `self` argument")); - #[allow(unused_parens)] let ($($arg),*) = <($($arg),*) as TaskInput>::try_from_concrete(arg)?; Ok(Box::new(move || { @@ -252,7 +249,6 @@ macro_rules! task_fn_impl { let task_fn = self.clone(); let recv = Vc::::from(this.expect("Method need to have a `self` argument")); - #[allow(unused_parens)] let ($($arg),*) = <($($arg),*) as TaskInput>::try_from_concrete(arg)?; Ok(Box::new(move || { @@ -294,7 +290,6 @@ macro_rules! task_fn_impl { let task_fn = self.clone(); let recv = Vc::::from(this.expect("Method need to have a `self` argument")); - #[allow(unused_parens)] let ($($arg),*) = <($($arg),*) as TaskInput>::try_from_concrete(arg)?; Ok(Box::new(move || { @@ -323,7 +318,6 @@ macro_rules! task_fn_impl { let task_fn = self.clone(); let recv = Vc::::from(this.expect("Method need to have a `self` argument")); - #[allow(unused_parens)] let ($($arg),*) = <($($arg),*) as TaskInput>::try_from_concrete(arg)?; Ok(Box::new(move || { diff --git a/crates/turbo-tasks/src/task/task_input.rs b/crates/turbo-tasks/src/task/task_input.rs index c1d45a7729275f..9d21f9e228c552 100644 --- a/crates/turbo-tasks/src/task/task_input.rs +++ b/crates/turbo-tasks/src/task/task_input.rs @@ -362,7 +362,7 @@ macro_rules! tuple_impls { }; } -// Implement `TaskInput` for all tuples of 1 to 12 elements. +// Implement `TaskInput` for all tuples of 1 to 16 elements. tuple_impls! { A } tuple_impls! { A B } tuple_impls! { A B C }