Skip to content

Commit 720f33e

Browse files
committed
add .to_mut() in test owned_mutation()
1 parent 64035f7 commit 720f33e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

exercises/smart_pointers/cow1.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ mod tests {
7070
// case the call to `to_mut()` returns a reference to the same data as
7171
// before.
7272
let slice = vec![-1, 0, 1];
73-
let mut input = Cow::from(slice);
73+
let mut input = Cow::from(slice).to_mut();
7474
match abs_all(&mut input) {
7575
// TODO
7676
}

0 commit comments

Comments
 (0)