We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e522e6b commit c8dd241Copy full SHA for c8dd241
exercises/practice/doubly-linked-list/tests/step_4_leak_test_2.rs
@@ -19,8 +19,7 @@ fn drop_no_leaks() {
19
drop(list);
20
21
let allocated_after = ALLOCATED.load(SeqCst);
22
- let leaked_bytes = allocated_before - allocated_after;
23
- assert!(leaked_bytes == 0);
+ assert_eq!(allocated_before, allocated_after);
24
}
25
26
// Defines a wrapper around the global allocator that counts allocations
0 commit comments