uv-pep440: fix bad merge (#10368)

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).
This commit is contained in:
Andrew Gallant 2025-01-07 10:11:41 -05:00 committed by GitHub
parent 373e34f5dd
commit 043bdcec8b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 2 deletions

View File

@ -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");
}
}