44//! Uses the unified LISTING_CACHE from operations.rs (no duplicate cache).
55
66use notify_debouncer_full:: {
7- DebounceEventResult , Debouncer , RecommendedCache , new_debouncer,
7+ new_debouncer,
88 notify:: { RecommendedWatcher , RecursiveMode } ,
9+ DebounceEventResult , Debouncer , RecommendedCache ,
910} ;
1011use serde:: { Deserialize , Serialize } ;
1112use std:: collections:: HashMap ;
@@ -14,7 +15,7 @@ use std::sync::{LazyLock, RwLock};
1415use std:: time:: Duration ;
1516use tauri:: { AppHandle , Emitter } ;
1617
17- use super :: operations:: { FileEntry , get_listing_entries, list_directory_core, update_listing_entries} ;
18+ use super :: operations:: { get_listing_entries, list_directory_core, update_listing_entries, FileEntry } ;
1819
1920/// Debounce duration in milliseconds
2021const DEBOUNCE_MS : u64 = 200 ;
@@ -49,7 +50,7 @@ pub struct DirectoryDiff {
4950/// NOTE: No `entries` field - we use the unified LISTING_CACHE instead.
5051struct WatchedDirectory {
5152 sequence : u64 ,
52- #[ allow( dead_code) ] // Debouncer must be held to keep watching
53+ #[ allow( dead_code, reason = " Debouncer must be held to keep watching" ) ]
5354 debouncer : Debouncer < RecommendedWatcher , RecommendedCache > ,
5455}
5556
0 commit comments