refactor(es/compat): Respect MSRV (#5473)

This commit is contained in:
OJ Kwon 2022-08-12 19:38:23 -07:00 committed by GitHub
parent a5120460b1
commit 4a3b4b27e2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -353,10 +353,12 @@ impl<C: Comments> Actual<C> {
wrapper.function = make_fn_ref(fn_expr);
*expr = wrapper.into();
if !in_iife && let Some(c) = &mut self.comments {
if !in_iife {
if let Some(c) = &mut self.comments {
c.add_pure_comment(expr.span().lo)
}
}
}
Expr::Fn(
fn_expr @ FnExpr {
@ -374,10 +376,12 @@ impl<C: Comments> Actual<C> {
wrapper.function = make_fn_ref(fn_expr);
*expr = wrapper.into();
if !in_iife && let Some(c) = &mut self.comments {
if !in_iife {
if let Some(c) = &mut self.comments {
c.add_pure_comment(expr.span().lo)
}
}
}
_ => {}
}