Skip to content

Commit

Permalink
uv-pep440: fix bad merge
Browse files Browse the repository at this point in the history
This happened as a result of #10345 and #10362 being merged
independently. The latter used the old `Version::release` API, but the
former changed the `Version::release` API. This PR tweaks the new test
to use the new API (i.e., force a deref on the proxy type).
  • Loading branch information
BurntSushi committed Jan 7, 2025
1 parent 373e34f commit f1a51da
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/uv-pep440/src/version.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4000,11 +4000,11 @@ mod tests {
#[test]
fn preserve_trailing_zeros() {
let v1: Version = "1.2.0".parse().unwrap();
assert_eq!(v1.release(), &[1, 2, 0]);
assert_eq!(&*v1.release(), &[1, 2, 0]);
assert_eq!(v1.to_string(), "1.2.0");

let v2: Version = "1.2".parse().unwrap();
assert_eq!(v2.release(), &[1, 2]);
assert_eq!(&*v2.release(), &[1, 2]);
assert_eq!(v2.to_string(), "1.2");
}
}

0 comments on commit f1a51da

Please sign in to comment.