Skip to content

Commit

Permalink
Assert in release mode too on duplicate keys (helix-editor#1228)
Browse files Browse the repository at this point in the history
  • Loading branch information
ath3 authored Dec 5, 2021
1 parent a06871a commit 11a2f9a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion helix-term/src/keymap.rs
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ macro_rules! keymap {
_key,
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);
)+
)*
Expand Down

0 comments on commit 11a2f9a

Please sign in to comment.