Skip to content

Commit

Permalink
fix seek bug in release mode
Browse files Browse the repository at this point in the history
  • Loading branch information
antkiller996 committed Jun 27, 2023
1 parent 7b82e28 commit 9bf2580
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/cursor/edge.rs
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,8 @@ where
}
}
fn seek(&mut self, euid: &EdgeUid, nearest: bool) -> Result<&mut Self> {
debug_assert!(self.as_raw().goto(&euid.as_raw(), nearest)?);
let ret = self.as_raw().goto(&euid.as_raw(), nearest)?;
debug_assert!(ret);
Ok(self)
}
fn into_edges(self) -> IntoEdgeIter<Self>
Expand Down
3 changes: 2 additions & 1 deletion src/cursor/vertex.rs
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,8 @@ where
}

fn seek(&mut self, vid: i64, nearest: bool) -> Result<&mut Self> {
debug_assert!(self.as_raw().goto(vid, nearest)?);
let ret = self.as_raw().goto(vid, nearest)?;
debug_assert!(ret);
Ok(self)
}

Expand Down

0 comments on commit 9bf2580

Please sign in to comment.