Assert in release mode too on duplicate keys (#1228)

This commit is contained in:
ath3 2021-12-05 05:04:10 +01:00 committed by GitHub
parent a06871a689
commit 11a2f9ac31
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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);
)+
)*