Remove unnecessary mut
This commit is contained in:
parent
e449f3d629
commit
7c083a8fed
@ -1909,7 +1909,7 @@ fn test_once() {
|
|||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
fn test_once_with() {
|
fn test_once_with() {
|
||||||
let mut count = Cell::new(0);
|
let count = Cell::new(0);
|
||||||
let mut it = once_with(|| {
|
let mut it = once_with(|| {
|
||||||
count.set(count.get() + 1);
|
count.set(count.get() + 1);
|
||||||
42
|
42
|
||||||
|
Loading…
Reference in New Issue
Block a user