Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
kdy1 committed Jan 23, 2025
1 parent d21530f commit 5796d4e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion crates/swc_ecma_minifier/src/compress/util/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -362,7 +362,7 @@ pub(crate) fn is_pure_undefined(expr_ctx: ExprCtx, e: &Expr) -> bool {
}
}

pub(crate) fn is_primitive<'a>(expr_ctx: ExprCtx, e: &'a Expr) -> Option<&'a Expr> {
pub(crate) fn is_primitive(expr_ctx: ExprCtx, e: &Expr) -> Option<&Expr> {
if is_pure_undefined(expr_ctx, e) {
Some(e)
} else {
Expand Down
4 changes: 1 addition & 3 deletions crates/swc_ecma_minifier/src/pass/precompress.rs
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,7 @@ impl PrecompressOptimizer {

impl Parallel for PrecompressOptimizer {
fn create(&self) -> Self {
Self {
expr_ctx: self.expr_ctx.clone(),
}
Self { ..*self }
}

fn merge(&mut self, _: Self) {}
Expand Down

0 comments on commit 5796d4e

Please sign in to comment.