1
0
Fork 0
forked from wry/wry
wry/src/utils/log_on_drop.rs
2025-08-29 11:21:11 +02:00

8 lines
155 B
Rust

#[expect(dead_code)]
pub struct LogOnDrop(pub &'static str);
impl Drop for LogOnDrop {
fn drop(&mut self) {
log::info!("{}", self.0);
}
}