Skip to content

Commit 4620f82

Browse files
committed
Fix tidy unittest.
1 parent 726bbfc commit 4620f82

File tree

1 file changed

+2
-2
lines changed
  • src/tools/tidy/src/features/version

1 file changed

+2
-2
lines changed

src/tools/tidy/src/features/version/tests.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ fn test_try_from_invalid_version() {
1212

1313
#[test]
1414
fn test_try_from_single() {
15-
assert_eq!("1.32.0".parse(), Ok(Version { parts: [1, 32, 0] }));
16-
assert_eq!("1.0.0".parse(), Ok(Version { parts: [1, 0, 0] }));
15+
assert_eq!("1.32.0".parse(), Ok(Version::Explicit { parts: [1, 32, 0] }));
16+
assert_eq!("1.0.0".parse(), Ok(Version::Explicit { parts: [1, 0, 0] }));
1717
}
1818

1919
#[test]

0 commit comments

Comments
 (0)