commit | 921e8a09261e18bf9aba13f089e8cd23c8a7c35b | [log] [tgz] |
---|---|---|
author | Stjepan Glavina <stjepang@gmail.com> | Mon Jan 06 14:31:28 2020 -0600 |
committer | GitHub <noreply@github.com> | Mon Jan 06 14:31:28 2020 -0600 |
tree | 51b418bdeb678e55fe28fa648262dd5ba5fe01a5 | |
parent | 119f82fbe387db916b2393d1a489c5733fd930f4 [diff] [blame] |
Make the crate no_std (#15) * Remove crossbeam * Rewrite notification and registration * Make crate no_std * Add a comment
diff --git a/src/utils.rs b/src/utils.rs index 441ead1..7c71deb 100644 --- a/src/utils.rs +++ b/src/utils.rs
@@ -1,5 +1,5 @@ -use std::alloc::Layout; -use std::mem; +use core::alloc::Layout; +use core::mem; /// Calls a function and aborts if it panics. /// @@ -10,7 +10,7 @@ impl Drop for Bomb { fn drop(&mut self) { - std::process::abort(); + unsafe { libc::abort() } } }