diff options
| author | Stjepan Glavina <stjepang@gmail.com> | 2019-01-14 12:23:50 +0100 |
|---|---|---|
| committer | Stjepan Glavina <stjepang@gmail.com> | 2019-01-14 12:23:50 +0100 |
| commit | 7c083a8fede186f2fc39a1d0e30ee156417473b0 (patch) | |
| tree | f69cdf98b92c7826ad236af7930ae0ed9a912f30 /src | |
| parent | e449f3d62927887c01fe8b16bfcb4282d007fca2 (diff) | |
| download | rust-7c083a8fede186f2fc39a1d0e30ee156417473b0.tar.gz rust-7c083a8fede186f2fc39a1d0e30ee156417473b0.zip | |
Remove unnecessary mut
Diffstat (limited to 'src')
| -rw-r--r-- | src/libcore/tests/iter.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libcore/tests/iter.rs b/src/libcore/tests/iter.rs index e2242ecc8cf..3944bc749d0 100644 --- a/src/libcore/tests/iter.rs +++ b/src/libcore/tests/iter.rs @@ -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 |
