From 6f58c12b3cde1886e308423ccd2150dc21130106 Mon Sep 17 00:00:00 2001 From: Yuriy <17292315+ykamendrovskiy@users.noreply.github.com> Date: Mon, 10 Aug 2026 18:01:50 +0300 Subject: [PATCH] style: cargo fmt src-tauri (import order in is_dataless) Formatting only, no code changes: the two cfg-gated MetadataExt imports are mutually exclusive per target, so the compiled code is identical on both platforms. Unblocks the rust CI job, which currently dies at the fmt gate before cargo test (the resolve_within containment suite) and clippy get to run. Co-Authored-By: Claude Fable 5 --- src-tauri/src/lib.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src-tauri/src/lib.rs b/src-tauri/src/lib.rs index 6bc0bd5..4cec9db 100644 --- a/src-tauri/src/lib.rs +++ b/src-tauri/src/lib.rs @@ -172,10 +172,10 @@ fn is_dataless(meta: &fs::Metadata) -> bool { // the platform-specific `MetadataExt` differs only by module. On iOS an evicted file is // materialized on open by the icloud-fs plugin's coordinated read (`read_note`), which triggers // the download; the walks below still skip its content so the list/corpus don't stall. - #[cfg(target_os = "macos")] - use std::os::macos::fs::MetadataExt; #[cfg(target_os = "ios")] use std::os::ios::fs::MetadataExt; + #[cfg(target_os = "macos")] + use std::os::macos::fs::MetadataExt; // SF_DATALESS ("file is dataless object") from `` — a super-user/system flag in the // high half of `st_flags`, defined there as `0x40000000`. Hand-coded because libc doesn't expose // it. Verified against the macOS 26.5 SDK header; if a future SDK ever moves it, the worst case