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/log_on_drop.rs
Normal file
7
utils/src/log_on_drop.rs
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
pub struct LogOnDrop(pub &'static str);
|
||||
|
||||
impl Drop for LogOnDrop {
|
||||
fn drop(&mut self) {
|
||||
log::info!("{}", self.0);
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue