Skip to content

Commit

Permalink
Merge pull request #753 from epage/fix
Browse files Browse the repository at this point in the history
fix: Ensure an assert activates
  • Loading branch information
epage authored Feb 11, 2024
2 parents 796021f + 06dd862 commit 5a09137
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 5a09137

Please sign in to comment.