Skip to content

Commit

Permalink
examples/core-sizes: fix imports & exit code
Browse files Browse the repository at this point in the history
  • Loading branch information
kaspar030 committed Nov 15, 2023
1 parent 817ff14 commit 27503a3
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions examples/core-sizes/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,18 @@
#![no_std]

use riot_rs as _;
use riot_rs::rt::debug::{exit, println};
use riot_rs::rt::debug::{exit, println, EXIT_SUCCESS};

#[no_mangle]
fn riot_main() {
println!(
"riot_rs::core::lock::Lock: {}",
core::mem::size_of::<riot_rs::core::lock::Lock>()
"riot_rs::thread::lock::Lock: {}",
core::mem::size_of::<riot_rs::thread::lock::Lock>()
);
println!(
"riot_rs::core::thread::Thread: {}",
core::mem::size_of::<riot_rs::core::thread::Thread>()
"riot_rs::thread::Thread: {}",
core::mem::size_of::<riot_rs::thread::Thread>()
);

exit(0);
exit(EXIT_SUCCESS);
}

0 comments on commit 27503a3

Please sign in to comment.