Use todo!() instead of ???

This commit is contained in:
mo8it
2024-06-28 02:26:35 +02:00
parent cf9041c0e4
commit 4f71f74b44
2 changed files with 6 additions and 6 deletions
+2 -2
View File
@@ -29,8 +29,8 @@ mod tests {
// TODO: This test should check if the rectangle has the size that we
// pass to its constructor.
let rect = Rectangle::new(10, 20);
assert_eq!(???, 10); // Check width
assert_eq!(???, 20); // Check height
assert_eq!(todo!(), 10); // Check width
assert_eq!(todo!(), 20); // Check height
}
// TODO: This test should check if the program panics when we try to create