Use debug_assert!.

This commit is contained in:
Stephen Chung
2023-02-12 00:13:54 +08:00
parent 8685323b15
commit 9f18d6519d
5 changed files with 6 additions and 6 deletions

View File

@@ -20,7 +20,7 @@ impl Engine {
global: &GlobalRuntimeState,
namespace: &crate::ast::Namespace,
) -> Option<crate::SharedModule> {
assert!(!namespace.is_empty());
debug_assert!(!namespace.is_empty());
let root = namespace.root();