A fast file manager for Windows and macOS that never freezes: tabs, dual panes, archives as folders, Quick Look-style previews. A File Explorer and Finder alternative written in Rust.
Rust archive-managerdesktop-appdual-paneexplorer-alternativefile-browserfile-explorerfile-managerfluent-designgpu-acceleratedgpuimacosmicaproductivityquick-lookrustrust-guitabswindowswindows-11windows-explorer
Drop an unused helper of the arriving mark
gelenmedya30a975b971a6
diff --git a/crates/rf-app/src/status_center.rs b/crates/rf-app/src/status_center.rsindex a9288e6d..acb848d2 100644--- a/crates/rf-app/src/status_center.rs+++ b/crates/rf-app/src/status_center.rs@@ -946,11 +946,7 @@ static ARRIVING_NEXT: std::sync::atomic::AtomicU64 = std::sync::atomic::AtomicU6/// Holds a destination in [`ARRIVING`] for as long as its transfer runs.struct Arriving(u64);impl Arriving {- fn begin(dest: &std::path::Path) -> Self {- Self::bringing(dest, &[])- }-- /// [`Arriving::begin`] for a transfer of `sources`: the items named as they are arrive in `dest`.+ /// Holds `dest` for a transfer of `sources`: the items named as they are arrive in `dest`.fn bringing(dest: &std::path::Path, sources: &[std::path::PathBuf]) -> Self {let id = ARRIVING_NEXT.fetch_add(1, Ordering::Relaxed);let names = sources.iter().filter_map(|s| s.file_name().map(|n| n.to_string_lossy().into_owned())).collect();@@ -1974,7 +1970,7 @@ mod tests {let old = dir.join("old.txt");std::fs::write(&old, b"x").unwrap();std::thread::sleep(Duration::from_millis(1500));- let job = super::Arriving::begin(&dir);+ let job = super::Arriving::bringing(&dir, &[]);let new = dir.join("x - Copy");std::fs::create_dir(&new).unwrap();assert!(super::still_arriving(&new), "made by the running copy");