Skip to content

Commit

Permalink
Fix clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
kdy1 committed Apr 27, 2024
1 parent 6a6f564 commit f9ba96b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions crates/turbopack-ecmascript/src/tree_shake/mod.rs
Expand Up @@ -76,7 +76,7 @@ impl Analyzer<'_> {
vars: Default::default(),
};

let eventual_ids = analyzer.hoist_vars_and_bindings(unresolved_ctxt);
let eventual_ids = analyzer.hoist_vars_and_bindings();

analyzer.evaluate_immediate(module, &eventual_ids);

Expand All @@ -91,7 +91,7 @@ impl Analyzer<'_> {
///
///
/// Returns all (EVENTUAL_READ/WRITE_VARS) in the module.
fn hoist_vars_and_bindings(&mut self, unresolved_ctxt: SyntaxContext) -> IndexSet<Id> {
fn hoist_vars_and_bindings(&mut self) -> IndexSet<Id> {
let mut eventual_ids = IndexSet::default();

for item_id in self.item_ids.iter() {
Expand Down
2 changes: 1 addition & 1 deletion crates/turbopack-ecmascript/src/tree_shake/tests.rs
Expand Up @@ -142,7 +142,7 @@ fn run(input: PathBuf) {
vars: Default::default(),
};

let eventual_ids = analyzer.hoist_vars_and_bindings(unresolved_ctxt);
let eventual_ids = analyzer.hoist_vars_and_bindings();

writeln!(s, "# Phase 1").unwrap();
writeln!(s, "```mermaid\n{}```", render_graph(&item_ids, analyzer.g)).unwrap();
Expand Down

0 comments on commit f9ba96b

Please sign in to comment.