From e8ace69bb0150c5eb9914b65501c4ea55b7a7c29 Mon Sep 17 00:00:00 2001 From: Test Date: Wed, 18 Mar 2026 15:44:34 +0100 Subject: [PATCH] style: rustfmt formatting for rename.rs assertions Co-Authored-By: Claude Opus 4.6 (1M context) --- src-tauri/src/vault/rename.rs | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/src-tauri/src/vault/rename.rs b/src-tauri/src/vault/rename.rs index c8dbe79c..79028150 100644 --- a/src-tauri/src/vault/rename.rs +++ b/src-tauri/src/vault/rename.rs @@ -670,9 +670,18 @@ mod tests { .unwrap(); let content = fs::read_to_string(&result.new_path).unwrap(); - assert!(content.contains("title: Brand New Title"), "frontmatter title should be updated"); - assert!(content.contains("# Old Title"), "H1 must NOT be modified by rename"); - assert!(!content.contains("# Brand New Title"), "H1 must NOT match new title"); + assert!( + content.contains("title: Brand New Title"), + "frontmatter title should be updated" + ); + assert!( + content.contains("# Old Title"), + "H1 must NOT be modified by rename" + ); + assert!( + !content.contains("# Brand New Title"), + "H1 must NOT match new title" + ); } #[test]