diff --git a/src-tauri/src/vault/mod_tests.rs b/src-tauri/src/vault/mod_tests.rs index 2570a775..fa1149c0 100644 --- a/src-tauri/src/vault/mod_tests.rs +++ b/src-tauri/src/vault/mod_tests.rs @@ -1523,7 +1523,10 @@ fn test_non_yml_file_uses_filename_as_title() { #[test] fn test_classify_file_kind_yml_is_text() { - assert_eq!(classify_file_kind(Path::new("views/active-projects.yml")), "text"); + assert_eq!( + classify_file_kind(Path::new("views/active-projects.yml")), + "text" + ); assert_eq!(classify_file_kind(Path::new("config.yaml")), "text"); assert_eq!(classify_file_kind(Path::new("data.json")), "text"); assert_eq!(classify_file_kind(Path::new("script.py")), "text"); @@ -1545,7 +1548,11 @@ fn test_classify_file_kind_unknown_is_binary() { #[test] fn test_non_md_file_gets_text_file_kind() { let dir = TempDir::new().unwrap(); - create_test_file(dir.path(), "views/my-view.yml", "name: My View\nicon: rocket\n"); + create_test_file( + dir.path(), + "views/my-view.yml", + "name: My View\nicon: rocket\n", + ); let entry = super::parse_non_md_file(&dir.path().join("views/my-view.yml"), None).unwrap(); assert_eq!(entry.file_kind, "text"); assert_eq!(entry.title, "My View");