summaryrefslogtreecommitdiff
path: root/rustlings/exercises/19_smart_pointers/cow1.rs
diff options
context:
space:
mode:
Diffstat (limited to 'rustlings/exercises/19_smart_pointers/cow1.rs')
-rw-r--r--rustlings/exercises/19_smart_pointers/cow1.rs9
1 files changed, 3 insertions, 6 deletions
diff --git a/rustlings/exercises/19_smart_pointers/cow1.rs b/rustlings/exercises/19_smart_pointers/cow1.rs
index 1566500..56a25b9 100644
--- a/rustlings/exercises/19_smart_pointers/cow1.rs
+++ b/rustlings/exercises/19_smart_pointers/cow1.rs
@@ -38,8 +38,7 @@ mod tests {
let vec = vec![0, 1, 2];
let mut input = Cow::from(&vec);
abs_all(&mut input);
- // TODO: Replace `todo!()` with `Cow::Owned(_)` or `Cow::Borrowed(_)`.
- assert!(matches!(input, todo!()));
+ assert!(matches!(input, Cow::Borrowed(_)));
}
#[test]
@@ -51,8 +50,7 @@ mod tests {
let vec = vec![0, 1, 2];
let mut input = Cow::from(vec);
abs_all(&mut input);
- // TODO: Replace `todo!()` with `Cow::Owned(_)` or `Cow::Borrowed(_)`.
- assert!(matches!(input, todo!()));
+ assert!(matches!(input, Cow::Owned(_)));
}
#[test]
@@ -63,7 +61,6 @@ mod tests {
let vec = vec![-1, 0, 1];
let mut input = Cow::from(vec);
abs_all(&mut input);
- // TODO: Replace `todo!()` with `Cow::Owned(_)` or `Cow::Borrowed(_)`.
- assert!(matches!(input, todo!()));
+ assert!(matches!(input, Cow::Owned(_)));
}
}