diff options
Diffstat (limited to 'crates/tor-config')
| -rw-r--r-- | crates/tor-config/src/file_watcher.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/crates/tor-config/src/file_watcher.rs b/crates/tor-config/src/file_watcher.rs index 0c2100236..636a2ad05 100644 --- a/crates/tor-config/src/file_watcher.rs +++ b/crates/tor-config/src/file_watcher.rs @@ -56,6 +56,7 @@ cfg_if::cfg_if! { /// /// [^1]: See <https://github.com/notify-rs/notify/issues/644> #[derive(Getters)] +#[must_use = "A dropped FileWatcher exits immediately"] pub struct FileWatcher { /// An underlying `notify` watcher that tells us about directory changes. // this field is kept only so the watcher is not dropped |
