config: implement config reloading
This commit is contained in:
parent
aa19aab915
commit
7b40b42990
14 changed files with 188 additions and 50 deletions
7
src/utils/unlink_on_drop.rs
Normal file
7
src/utils/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