on master help sign in
Assert in release mode too on duplicate keys (#1228)
11a2f9aath3
helix-term/src/keymap.rs+1−1
@@ -120,7 +120,7 @@ macro_rules! keymap {
120 _key,
120 _key,
121 keymap!(@trie $value)
121 keymap!(@trie $value)
122 );
122 );
123− debug_assert!(_duplicate.is_none(), "Duplicate key found: {:?}", _duplicate.unwrap());
123+ assert!(_duplicate.is_none(), "Duplicate key found: {:?}", _duplicate.unwrap());
124 _order.push(_key);
124 _order.push(_key);
125 )+
125 )+
126 )*
126 )*