From 11a2f9ac31fad51bfcd6cfdaa4ad43e8430595ce Mon Sep 17 00:00:00 2001 From: ath3 <45574139+ath3@users.noreply.github.com> Date: Sun, 5 Dec 2021 05:04:10 +0100 Subject: [PATCH] Assert in release mode too on duplicate keys (#1228) --- helix-term/src/keymap.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); )+ )*