From e2e5befef10b448fab39c52fac5d55a156d476a0 Mon Sep 17 00:00:00 2001 From: lucaronin Date: Mon, 2 Mar 2026 23:26:57 +0100 Subject: [PATCH] style: fix rustfmt formatting in cache test assertions Co-Authored-By: Claude Opus 4.6 --- src-tauri/src/vault/cache.rs | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src-tauri/src/vault/cache.rs b/src-tauri/src/vault/cache.rs index a4ba87e1..86f4d018 100644 --- a/src-tauri/src/vault/cache.rs +++ b/src-tauri/src/vault/cache.rs @@ -352,7 +352,9 @@ mod tests { let entries = scan_vault_cached(vault).unwrap(); assert_eq!(entries.len(), 1); assert!( - entries[0].path.starts_with(&vault.to_string_lossy().as_ref()), + entries[0] + .path + .starts_with(&vault.to_string_lossy().as_ref()), "Entry path should start with vault path" ); @@ -369,7 +371,9 @@ mod tests { let entries2 = scan_vault_cached(vault).unwrap(); assert_eq!(entries2.len(), 1); assert!( - entries2[0].path.starts_with(&vault.to_string_lossy().as_ref()), + entries2[0] + .path + .starts_with(&vault.to_string_lossy().as_ref()), "After stale-cache invalidation, paths should use the current vault path, got: {}", entries2[0].path );