Skip to content

Commit

Permalink
Remove an immediately dereferenced reference
Browse files Browse the repository at this point in the history
  • Loading branch information
havenwood committed Jul 25, 2024
1 parent 28bd958 commit e77ca43
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion benches/bench.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ fn repeated_input() -> &'static String {

fn prepare_input() -> Cursor<&'static str> {
let input = repeated_input();
Cursor::new(&input)
Cursor::new(input)
}

fn bench_new_unsorted(c: &mut Criterion) {
Expand Down

0 comments on commit e77ca43

Please sign in to comment.