diff --git a/src/directory/file_watcher.rs b/src/directory/file_watcher.rs index d70112956..b0d8b7a19 100644 --- a/src/directory/file_watcher.rs +++ b/src/directory/file_watcher.rs @@ -9,6 +9,7 @@ use crc32fast::Hasher; use crate::directory::{WatchCallback, WatchCallbackList, WatchHandle}; +#[allow(dead_code)] const POLLING_INTERVAL: Duration = Duration::from_millis(if cfg!(test) { 1 } else { 500 }); // Watches a file and executes registered callbacks when the file is modified. @@ -18,6 +19,7 @@ pub struct FileWatcher { state: Arc, // 0: new, 1: runnable, 2: terminated } +#[allow(dead_code)] impl FileWatcher { pub fn new(path: &Path) -> FileWatcher { FileWatcher {