Skip to content

Commit 13eb060

Browse files
Thogsgkim126
authored andcommitted
Switch the crate to no_std
This allow to use this crate on no_std environment.
1 parent 7093be3 commit 13eb060

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/lib.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
use std::ops::{Drop, FnOnce};
1+
#![no_std]
2+
3+
use core::ops::{Drop, FnOnce};
24

35
pub struct Finally<F>
46
where
@@ -28,7 +30,7 @@ where
2830
#[cfg(test)]
2931
mod tests {
3032
use super::finally;
31-
use std::sync::atomic::{AtomicUsize, Ordering};
33+
use core::sync::atomic::{AtomicUsize, Ordering};
3234

3335
#[test]
3436
fn executed_on_drop() {

0 commit comments

Comments
 (0)