mirror of https://github.com/helix-editor/helix
Assert in release mode too on duplicate keys (#1228)
parent
a06871a689
commit
11a2f9ac31
|
@ -120,7 +120,7 @@ macro_rules! keymap {
|
||||||
_key,
|
_key,
|
||||||
keymap!(@trie $value)
|
keymap!(@trie $value)
|
||||||
);
|
);
|
||||||
debug_assert!(_duplicate.is_none(), "Duplicate key found: {:?}", _duplicate.unwrap());
|
assert!(_duplicate.is_none(), "Duplicate key found: {:?}", _duplicate.unwrap());
|
||||||
_order.push(_key);
|
_order.push(_key);
|
||||||
)+
|
)+
|
||||||
)*
|
)*
|
||||||
|
|
Loading…
Reference in New Issue