aboutsummaryrefslogtreecommitdiff
path: root/helix-term/src
diff options
context:
space:
mode:
authorath32021-12-05 04:04:10 +0000
committerGitHub2021-12-05 04:04:10 +0000
commit11a2f9ac31fad51bfcd6cfdaa4ad43e8430595ce (patch)
tree0d77ce51cb2206a73f10a4bffc47a509fe313a16 /helix-term/src
parenta06871a68971aa1eff8f54e8b3d751683f9d2c12 (diff)
Assert in release mode too on duplicate keys (#1228)
Diffstat (limited to 'helix-term/src')
-rw-r--r--helix-term/src/keymap.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/helix-term/src/keymap.rs b/helix-term/src/keymap.rs
index ecb0cc6c..9debbbac 100644
--- a/helix-term/src/keymap.rs
+++ b/helix-term/src/keymap.rs
@@ -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);
)+
)*