Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
kdy1 committed Jan 15, 2025
1 parent fdd9ecf commit 7f56aca
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/swc_ecma_minifier/examples/minify-all.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ fn main() {
eprintln!("Using {} files", files.len());

let start = Instant::now();
minify_all(cm, files);
minify_all(files);

eprintln!("Took {:?}", start.elapsed());
}
Expand Down Expand Up @@ -54,7 +54,7 @@ fn expand_dirs(dirs: Vec<String>) -> Vec<PathBuf> {
}

#[inline(never)] // For profiling
fn minify_all(cm: Lrc<SourceMap>, files: Vec<PathBuf>) {
fn minify_all(files: Vec<PathBuf>) {
testing::run_test2(false, |cm, handler| {
GLOBALS.with(|globals| {
HANDLER.set(&handler, || {
Expand Down

0 comments on commit 7f56aca

Please sign in to comment.