diff --git a/crates/swc_parallel/src/lib.rs b/crates/swc_parallel/src/lib.rs index ff60c8fe703f..99bdd98a5197 100644 --- a/crates/swc_parallel/src/lib.rs +++ b/crates/swc_parallel/src/lib.rs @@ -21,6 +21,7 @@ impl<'a> From> for MaybeScope<'a> { } impl<'a> MaybeScope<'a> { + #[allow(clippy::redundant_closure)] pub fn with(&mut self, f: F) -> R where F: FnOnce(Scope<'a>) -> R,