Skip to content

Commit 8b4562e

Browse files
authored
Merge pull request #2219 from ubitux/no-todo
Remove TODO from 2 solutions
2 parents 63d8986 + d2abc35 commit 8b4562e

File tree

2 files changed

+0
-4
lines changed

2 files changed

+0
-4
lines changed

solutions/06_move_semantics/move_semantics4.rs

-2
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@ fn main() {
44

55
#[cfg(test)]
66
mod tests {
7-
// TODO: Fix the compiler errors only by reordering the lines in the test.
8-
// Don't add, change or remove any line.
97
#[test]
108
fn move_semantics4() {
119
let mut x = Vec::new();

solutions/19_smart_pointers/rc1.rs

-2
Original file line numberDiff line numberDiff line change
@@ -63,12 +63,10 @@ mod tests {
6363
println!("reference count = {}", Rc::strong_count(&sun)); // 7 references
6464
saturn.details();
6565

66-
// TODO
6766
let uranus = Planet::Uranus(Rc::clone(&sun));
6867
println!("reference count = {}", Rc::strong_count(&sun)); // 8 references
6968
uranus.details();
7069

71-
// TODO
7270
let neptune = Planet::Neptune(Rc::clone(&sun));
7371
println!("reference count = {}", Rc::strong_count(&sun)); // 9 references
7472
neptune.details();

0 commit comments

Comments
 (0)