Skip to content

Commit

Permalink
[fix] fix release build
Browse files Browse the repository at this point in the history
  • Loading branch information
sblackshear committed Jan 10, 2022
1 parent e7b2ecb commit 2784977
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions fastx_types/src/object.rs
Original file line number Diff line number Diff line change
Expand Up @@ -63,9 +63,12 @@ impl MoveObject {

self.contents = new_contents;

// caller should never overwrite ID or version
debug_assert!(self.id() == old_id);
debug_assert!(self.version() == old_version);
#[cfg(debug_assertions)]
{
// caller should never overwrite ID or version
debug_assert_eq!(self.id(), old_id);
debug_assert_eq!(self.version(), old_version);
}

self.increment_version()?;
Ok(())
Expand Down

0 comments on commit 2784977

Please sign in to comment.