Skip to content

Commit

Permalink
Remove unnecessary mut
Browse files Browse the repository at this point in the history
  • Loading branch information
Stjepan Glavina committed Jan 14, 2019
1 parent e449f3d commit 7c083a8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libcore/tests/iter.rs
Expand Up @@ -1909,7 +1909,7 @@ fn test_once() {

#[test]
fn test_once_with() {
let mut count = Cell::new(0);
let count = Cell::new(0);
let mut it = once_with(|| {
count.set(count.get() + 1);
42
Expand Down

0 comments on commit 7c083a8

Please sign in to comment.