about summary refs log tree commit diff
diff options
context:
space:
mode:
authorEric Huss <eric@huss.org>2022-12-31 11:52:16 -0800
committerEric Huss <eric@huss.org>2022-12-31 11:52:16 -0800
commit4620f82a13adce6c324baa6ed77dce511a586504 (patch)
treeeab495aacbcc1ddb7aa35a65072c46932a573744
parent726bbfc8f0d6eb431dfa620c1c8fc3848020cd3c (diff)
downloadrust-4620f82a13adce6c324baa6ed77dce511a586504.tar.gz
rust-4620f82a13adce6c324baa6ed77dce511a586504.zip
Fix tidy unittest.
-rw-r--r--src/tools/tidy/src/features/version/tests.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/tools/tidy/src/features/version/tests.rs b/src/tools/tidy/src/features/version/tests.rs
index 31224fdf1ea..7701dce2df1 100644
--- a/src/tools/tidy/src/features/version/tests.rs
+++ b/src/tools/tidy/src/features/version/tests.rs
@@ -12,8 +12,8 @@ fn test_try_from_invalid_version() {
 
 #[test]
 fn test_try_from_single() {
-    assert_eq!("1.32.0".parse(), Ok(Version { parts: [1, 32, 0] }));
-    assert_eq!("1.0.0".parse(), Ok(Version { parts: [1, 0, 0] }));
+    assert_eq!("1.32.0".parse(), Ok(Version::Explicit { parts: [1, 32, 0] }));
+    assert_eq!("1.0.0".parse(), Ok(Version::Explicit { parts: [1, 0, 0] }));
 }
 
 #[test]