Skip to content

Commit

Permalink
Replace debug_assert in side_after with assert
Browse files Browse the repository at this point in the history
  • Loading branch information
qinsoon committed Jul 31, 2023
1 parent 47ee126 commit f638185
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/vm/object_model.rs
Original file line number Diff line number Diff line change
Expand Up @@ -519,9 +519,9 @@ pub mod specs {
}
}
pub const fn side_after(spec: &MetadataSpec) -> Self {
debug_assert!(spec.is_on_side());
assert!(spec.is_on_side());
let side_spec = spec.extract_side_spec();
debug_assert!(side_spec.is_global == Self::IS_GLOBAL);
assert!(side_spec.is_global == Self::IS_GLOBAL);
Self(MetadataSpec::OnSide(SideMetadataSpec {
name: stringify!($spec_name),
is_global: Self::IS_GLOBAL,
Expand Down

0 comments on commit f638185

Please sign in to comment.