Skip to content

Commit 7c083a8

Browse files
author
Stjepan Glavina
committed
Remove unnecessary mut
1 parent e449f3d commit 7c083a8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libcore/tests/iter.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1909,7 +1909,7 @@ fn test_once() {
19091909

19101910
#[test]
19111911
fn test_once_with() {
1912-
let mut count = Cell::new(0);
1912+
let count = Cell::new(0);
19131913
let mut it = once_with(|| {
19141914
count.set(count.get() + 1);
19151915
42

0 commit comments

Comments
 (0)