refactor(pal/hermit): return ! to satisfy rust-analyzer
This silences this rust-analyzer-specific error: `expected !, found ()` Signed-off-by: Martin Kröning <martin.kroening@eonerc.rwth-aachen.de>
This commit is contained in:
parent
83dcdb3a5d
commit
76b4a86b57
2 changed files with 3 additions and 7 deletions
|
|
@ -49,9 +49,7 @@ pub fn unsupported_err() -> crate::io::Error {
|
|||
}
|
||||
|
||||
pub fn abort_internal() -> ! {
|
||||
unsafe {
|
||||
hermit_abi::abort();
|
||||
}
|
||||
unsafe { hermit_abi::abort() }
|
||||
}
|
||||
|
||||
pub fn hashmap_random_keys() -> (u64, u64) {
|
||||
|
|
@ -104,7 +102,7 @@ pub unsafe extern "C" fn runtime_entry(
|
|||
let result = main(argc as isize, argv);
|
||||
|
||||
crate::sys::thread_local::destructors::run();
|
||||
hermit_abi::exit(result);
|
||||
hermit_abi::exit(result)
|
||||
}
|
||||
|
||||
#[inline]
|
||||
|
|
|
|||
|
|
@ -190,9 +190,7 @@ pub fn home_dir() -> Option<PathBuf> {
|
|||
}
|
||||
|
||||
pub fn exit(code: i32) -> ! {
|
||||
unsafe {
|
||||
hermit_abi::exit(code);
|
||||
}
|
||||
unsafe { hermit_abi::exit(code) }
|
||||
}
|
||||
|
||||
pub fn getpid() -> u32 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue