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

@@ -185,7 +185,7 @@ impl FnCallHashes {
#[inline(always)]
#[must_use]
pub fn script(&self) -> u64 {
assert!(self.script.is_some());
debug_assert!(self.script.is_some());
self.script.unwrap()
}
}