Remove unnecessary mut
This commit is contained in:
parent
e449f3d629
commit
7c083a8fed
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue