1
0
Fork 0
forked from wry/wry
wry/src/utils/unlink_on_drop.rs
2022-05-02 16:20:25 +02:00

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);
}
}