From 0d01a243ae42b1d20e21dd2ddb9931fd17dc00da Mon Sep 17 00:00:00 2001 From: sxyazi Date: Thu, 8 Jan 2026 15:32:55 +0800 Subject: [PATCH] Format --- yazi-fs/src/mounts/partition.rs | 5 +++-- yazi-fs/src/mounts/partitions.rs | 4 ++-- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/yazi-fs/src/mounts/partition.rs b/yazi-fs/src/mounts/partition.rs index b920169c..158a833d 100644 --- a/yazi-fs/src/mounts/partition.rs +++ b/yazi-fs/src/mounts/partition.rs @@ -14,8 +14,9 @@ pub struct Partition { } impl Partition { - // Match mount types that do not reliably emit change notifications, or do not update directory - // metadata on changes, and should be refreshed frequently / heuristically. + // Match mount types that do not reliably emit change notifications, or do not + // update directory metadata on changes, and should be refreshed frequently / + // heuristically. pub fn heuristic(&self) -> bool { let b: &[u8] = self.fstype.as_ref().map_or(b"", |s| s.as_encoded_bytes()); matches!(b, b"exfat" | b"fuse.rclone") diff --git a/yazi-fs/src/mounts/partitions.rs b/yazi-fs/src/mounts/partitions.rs index b04d3e92..ac0725ab 100644 --- a/yazi-fs/src/mounts/partitions.rs +++ b/yazi-fs/src/mounts/partitions.rs @@ -38,8 +38,8 @@ impl Partitions { } #[cfg(not(any(target_os = "linux", target_os = "macos")))] { - // For now, assume other targets update directory stat data correctly & do not need - // heuristic polling. + // For now, assume other targets update directory stat data correctly & do not + // need heuristic polling. false } }