aboutsummaryrefslogtreecommitdiff
path: root/crates/tor-config/src/file_watcher.rs
diff options
context:
space:
mode:
Diffstat (limited to 'crates/tor-config/src/file_watcher.rs')
-rw-r--r--crates/tor-config/src/file_watcher.rs1
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