summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorClément Bœsch <u@pkh.me>2025-03-17 18:36:13 +0100
committerClément Bœsch <u@pkh.me>2025-03-17 18:36:13 +0100
commitd2abc359cc10c42a94aa680294eeaca2d7c502b2 (patch)
treed7ce7828d1c45df9846972fec777451d28d7ceea
parent7c0d269279aaed64d6b8240ed5c1e9f6a981181e (diff)
Remove TODO from 2 solutions
-rw-r--r--solutions/06_move_semantics/move_semantics4.rs2
-rw-r--r--solutions/19_smart_pointers/rc1.rs2
2 files changed, 0 insertions, 4 deletions
diff --git a/solutions/06_move_semantics/move_semantics4.rs b/solutions/06_move_semantics/move_semantics4.rs
index 64fdd9d..1a39d4f 100644
--- a/solutions/06_move_semantics/move_semantics4.rs
+++ b/solutions/06_move_semantics/move_semantics4.rs
@@ -4,8 +4,6 @@ fn main() {
#[cfg(test)]
mod tests {
- // TODO: Fix the compiler errors only by reordering the lines in the test.
- // Don't add, change or remove any line.
#[test]
fn move_semantics4() {
let mut x = Vec::new();
diff --git a/solutions/19_smart_pointers/rc1.rs b/solutions/19_smart_pointers/rc1.rs
index c0a41ab..edf40eb 100644
--- a/solutions/19_smart_pointers/rc1.rs
+++ b/solutions/19_smart_pointers/rc1.rs
@@ -63,12 +63,10 @@ mod tests {
println!("reference count = {}", Rc::strong_count(&sun)); // 7 references
saturn.details();
- // TODO
let uranus = Planet::Uranus(Rc::clone(&sun));
println!("reference count = {}", Rc::strong_count(&sun)); // 8 references
uranus.details();
- // TODO
let neptune = Planet::Neptune(Rc::clone(&sun));
println!("reference count = {}", Rc::strong_count(&sun)); // 9 references
neptune.details();