1
0
Fork 0
forked from wry/wry
wry/utils/src/unlink_on_drop.rs

7 lines
151 B
Rust

pub struct UnlinkOnDrop<'a>(pub &'a str);
impl<'a> Drop for UnlinkOnDrop<'a> {
fn drop(&mut self) {
let _ = uapi::unlink(self.0);
}
}