about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorStjepan Glavina <stjepang@gmail.com>2019-01-14 12:23:50 +0100
committerStjepan Glavina <stjepang@gmail.com>2019-01-14 12:23:50 +0100
commit7c083a8fede186f2fc39a1d0e30ee156417473b0 (patch)
treef69cdf98b92c7826ad236af7930ae0ed9a912f30 /src
parente449f3d62927887c01fe8b16bfcb4282d007fca2 (diff)
downloadrust-7c083a8fede186f2fc39a1d0e30ee156417473b0.tar.gz
rust-7c083a8fede186f2fc39a1d0e30ee156417473b0.zip
Remove unnecessary mut
Diffstat (limited to 'src')
-rw-r--r--src/libcore/tests/iter.rs2
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