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,8 +353,10 @@ impl<C: Comments> Actual<C> {
wrapper.function = make_fn_ref(fn_expr);
*expr = wrapper.into();
if !in_iife && let Some(c) = &mut self.comments {
c.add_pure_comment(expr.span().lo)
if !in_iife {
if let Some(c) = &mut self.comments {
c.add_pure_comment(expr.span().lo)
}
}
}
@ -374,8 +376,10 @@ impl<C: Comments> Actual<C> {
wrapper.function = make_fn_ref(fn_expr);
*expr = wrapper.into();
if !in_iife && let Some(c) = &mut self.comments {
c.add_pure_comment(expr.span().lo)
if !in_iife {
if let Some(c) = &mut self.comments {
c.add_pure_comment(expr.span().lo)
}
}
}