Skip to content

Commit

Permalink
Fixing bug that only occurs in release mode
Browse files Browse the repository at this point in the history
  • Loading branch information
AdamCDunlap committed Feb 9, 2017
1 parent d9cc450 commit 6ebf246
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion khwarizmi/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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?);
Expand Down

0 comments on commit 6ebf246

Please sign in to comment.