Skip to content

Commit

Permalink
Remove superfluous clone
Browse files Browse the repository at this point in the history
  • Loading branch information
JonasWanke committed Mar 27, 2023
1 parent 54ccb2e commit bd55af6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion compiler/formatter/src/format.rs
Expand Up @@ -438,7 +438,7 @@ pub(crate) fn format_cst<'a>(
if info.is_single_expression_in_assignment_body && is_singleline {
argument_info.with_dedent()
} else {
argument_info.clone()
argument_info
};
let (last_argument_width, whitespace) = last_argument
.format(
Expand Down

1 comment on commit bd55af6

@jwbot
Copy link
Collaborator

@jwbot jwbot commented on bd55af6 Mar 27, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Compiler

Benchmark suite Current: bd55af6 Previous: eb02a1f Ratio
Time: Compiler/hello_world 24724523 ns/iter (± 516572) 19914795 ns/iter (± 905259) 1.24
Time: Compiler/fibonacci 191814439 ns/iter (± 1644376) 186966516 ns/iter (± 1556543) 1.03
Time: VM Runtime/hello_world 23198596 ns/iter (± 440521) 17942540 ns/iter (± 226567) 1.29
Time: VM Runtime/fibonacci/15 210617261 ns/iter (± 703416) 201151148 ns/iter (± 3327528) 1.05

This comment was automatically generated by workflow using github-action-benchmark.

Please sign in to comment.