From 6ebf2468fdc7030a6a0e6fb037d5244abec17fbc Mon Sep 17 00:00:00 2001 From: Adam Dunlap Date: Thu, 9 Feb 2017 01:14:52 -0800 Subject: [PATCH] Fixing bug that only occurs in release mode --- khwarizmi/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/khwarizmi/src/lib.rs b/khwarizmi/src/lib.rs index 93b7c0d..df985a3 100644 --- a/khwarizmi/src/lib.rs +++ b/khwarizmi/src/lib.rs @@ -27,7 +27,7 @@ impl TreeIdx { let mut idxs = s.split(',') .map(|d| usize::from_str(d).map_err(|_| AlgebraDSLError::IllFormattedIndex)); // Pop the first index, because every expression/equation is in the trivial 0 idx - debug_assert!(Some(Ok(0)) == idxs.next()); + assert!(Some(Ok(0)) == idxs.next()); let mut v = vec![]; for idx in idxs { v.push(idx?);