From b778a764afcde120f6bbbc992836e2d1288924d8 Mon Sep 17 00:00:00 2001 From: aiongg Date: Tue, 20 Oct 2026 15:52:45 +0000 Subject: [PATCH] keymap: format the profiles test --- crates/keymap/tests/profiles.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/crates/keymap/tests/profiles.rs b/crates/keymap/tests/profiles.rs index 05183b11..ce94abfd 100644 --- a/crates/keymap/tests/profiles.rs +++ b/crates/keymap/tests/profiles.rs @@ -1,6 +1,6 @@ use craft_keymap::{ Bindable, Binding, CommandRef, ContextRule, Flavor, ForeignEntry, ForeignKey, ForeignSet, ImportOptions, Keymap, MAX_SETS, Overrides, Platform, - Policy, ProfileError, SetProblem, Profiles, Scope, Scopes, Start, plan, + Policy, ProfileError, Profiles, Scope, Scopes, SetProblem, Start, plan, }; use serde_json::json; @@ -107,7 +107,8 @@ fn a_user_set_named_like_a_new_built_in_keeps_its_edits() { assert_eq!(p.get("Classic", &builtins), Some(&classic)); assert_eq!(builtins[1].1, classic); - let mut q: Profiles = serde_json::from_value(json!({"active": "CRAFT", "sets": [{"name": "CRAFT", "overrides": {"edit.copy": "Cmd+K"}}]})).unwrap(); + let mut q: Profiles = + serde_json::from_value(json!({"active": "CRAFT", "sets": [{"name": "CRAFT", "overrides": {"edit.copy": "Cmd+K"}}]})).unwrap(); assert!(q.reconcile(&builtins)); assert_eq!(q.active_name(&builtins), "CRAFT 2"); assert_eq!(q.active_overrides(&builtins), &mine);