diff options
author | ath3 | 2021-12-05 04:04:10 +0000 |
---|---|---|
committer | GitHub | 2021-12-05 04:04:10 +0000 |
commit | 11a2f9ac31fad51bfcd6cfdaa4ad43e8430595ce (patch) | |
tree | 0d77ce51cb2206a73f10a4bffc47a509fe313a16 | |
parent | a06871a68971aa1eff8f54e8b3d751683f9d2c12 (diff) |
Assert in release mode too on duplicate keys (#1228)
-rw-r--r-- | helix-term/src/keymap.rs | 2 |
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); )+ )* |