From fe4a4450f7d994435580477bce7ac9803fb741f7 Mon Sep 17 00:00:00 2001 From: aiongg Date: Fri, 23 Oct 2026 07:28:24 +0000 Subject: [PATCH] keymap: compile Keymap::twins_in only with the ui feature, its one user --- crates/keymap/src/keymap.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/crates/keymap/src/keymap.rs b/crates/keymap/src/keymap.rs index 8c026945..33028d6f 100644 --- a/crates/keymap/src/keymap.rs +++ b/crates/keymap/src/keymap.rs @@ -787,6 +787,7 @@ impl Keymap { /// Whether both commands of `conflict` have its chord among their defaults, so they share it by /// design and [`Keymap::clashing`] leaves them out. + #[cfg(feature = "ui")] pub(crate) fn twins_in(&self, conflict: &Conflict) -> bool { let (Some(i), Some(j)) = (self.find(&conflict.a.0), self.find(&conflict.b.0)) else { return false }; self.twins(i, j, conflict.chord)