Skip to content

Commit

Permalink
Fix unnecesary mut
Browse files Browse the repository at this point in the history
  • Loading branch information
danielSanchezQ committed Sep 2, 2022
1 parent cca53a4 commit 02f8b9f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/it.rs
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ mod unsync {
92
});
assert_eq!(called.get(), 0);
let mut v = Lazy::force_mut(&mut x);
let v = Lazy::force_mut(&mut x);
assert_eq!(called.get(), 1);

*v /= 2;
Expand Down

0 comments on commit 02f8b9f

Please sign in to comment.