Skip to content

Commit

Permalink
fix: Ensure an assert activates
Browse files Browse the repository at this point in the history
  • Loading branch information
epage committed Feb 11, 2024
1 parent 796021f commit 06dd862
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ops/version.rs
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ pub fn upgrade_requirement(req: &str, version: &semver::Version) -> CargoResult<
new_req_text.remove(0);
}
// Validate contract
#[cfg(debug_assert)]
#[cfg(debug_assertions)]
{
assert!(
new_req.matches(version),
Expand Down

0 comments on commit 06dd862

Please sign in to comment.