all: split reusable components into workspace crates
This commit is contained in:
parent
2a079ed800
commit
657e7ce2f7
225 changed files with 7422 additions and 17602 deletions
7
utils/src/unlink_on_drop.rs
Normal file
7
utils/src/unlink_on_drop.rs
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
pub struct UnlinkOnDrop<'a>(pub &'a str);
|
||||
|
||||
impl<'a> Drop for UnlinkOnDrop<'a> {
|
||||
fn drop(&mut self) {
|
||||
let _ = uapi::unlink(self.0);
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue