Skip to content

Commit

Permalink
Update compiler/passes/src/function_inlining/inline_program.rs
Browse files Browse the repository at this point in the history
Signed-off-by: d0cd <[email protected]>
  • Loading branch information
d0cd authored Oct 4, 2023
1 parent 00105b9 commit 4ccb2f7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion compiler/passes/src/function_inlining/inline_program.rs
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ impl ProgramReconstructor for FunctionInliner<'_> {
let order = self.call_graph.post_order().unwrap();

// Construct map to provide faster lookup of functions
let function_map: IndexMap<Symbol, Function> = input.functions.clone().into_iter().collect();
let mut function_map: IndexMap<Symbol, Function> = input.functions.clone().into_iter().collect();

Check warning on line 31 in compiler/passes/src/function_inlining/inline_program.rs

View workflow job for this annotation

GitHub Actions / Test Package macOS-latest

variable does not need to be mutable

Check warning on line 31 in compiler/passes/src/function_inlining/inline_program.rs

View workflow job for this annotation

GitHub Actions / Test Package ubuntu-latest

variable does not need to be mutable

// Construct set to keep track of the remaining functions that still need to be processed.
let mut function_set: IndexSet<Symbol> = function_map.keys().cloned().collect();

Check warning on line 34 in compiler/passes/src/function_inlining/inline_program.rs

View workflow job for this annotation

GitHub Actions / Code Coverage

variable does not need to be mutable
Expand Down

0 comments on commit 4ccb2f7

Please sign in to comment.