Skip to content

Commit

Permalink
fix warn
Browse files Browse the repository at this point in the history
  • Loading branch information
buhe committed Oct 4, 2021
1 parent b7879da commit cd952be
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
2 changes: 2 additions & 0 deletions os/src/heap/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ pub fn init() {
pub fn handle_alloc_error(layout: core::alloc::Layout) -> ! {
panic!("Heap allocation error, layout = {:?}", layout);
}

#[test_case]
pub fn heap_test() {
use alloc::boxed::Box;
use alloc::vec::Vec;
Expand Down
5 changes: 0 additions & 5 deletions os/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,3 @@ fn test_runner(tests: &[&dyn Fn()]) {
test();
}
}

#[test_case]
fn trivial_assertion() {
heap::heap_test();
}

0 comments on commit cd952be

Please sign in to comment.