rustc_tools_util: bump version
This commit is contained in:
parent
9f7a09021d
commit
eb6c346137
@ -1,6 +1,6 @@
|
|||||||
[package]
|
[package]
|
||||||
name = "rustc_tools_util"
|
name = "rustc_tools_util"
|
||||||
version = "0.3.0"
|
version = "0.4.0"
|
||||||
description = "small helper to generate version information for git packages"
|
description = "small helper to generate version information for git packages"
|
||||||
repository = "https://github.com/rust-lang/rust-clippy"
|
repository = "https://github.com/rust-lang/rust-clippy"
|
||||||
readme = "README.md"
|
readme = "README.md"
|
||||||
|
@ -178,7 +178,7 @@ mod test {
|
|||||||
fn test_struct_local() {
|
fn test_struct_local() {
|
||||||
let vi = get_version_info!();
|
let vi = get_version_info!();
|
||||||
assert_eq!(vi.major, 0);
|
assert_eq!(vi.major, 0);
|
||||||
assert_eq!(vi.minor, 3);
|
assert_eq!(vi.minor, 4);
|
||||||
assert_eq!(vi.patch, 0);
|
assert_eq!(vi.patch, 0);
|
||||||
assert_eq!(vi.crate_name, "rustc_tools_util");
|
assert_eq!(vi.crate_name, "rustc_tools_util");
|
||||||
// hard to make positive tests for these since they will always change
|
// hard to make positive tests for these since they will always change
|
||||||
@ -189,7 +189,7 @@ mod test {
|
|||||||
#[test]
|
#[test]
|
||||||
fn test_display_local() {
|
fn test_display_local() {
|
||||||
let vi = get_version_info!();
|
let vi = get_version_info!();
|
||||||
assert_eq!(vi.to_string(), "rustc_tools_util 0.3.0");
|
assert_eq!(vi.to_string(), "rustc_tools_util 0.4.0");
|
||||||
}
|
}
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
@ -198,7 +198,7 @@ mod test {
|
|||||||
let s = format!("{vi:?}");
|
let s = format!("{vi:?}");
|
||||||
assert_eq!(
|
assert_eq!(
|
||||||
s,
|
s,
|
||||||
"VersionInfo { crate_name: \"rustc_tools_util\", major: 0, minor: 3, patch: 0 }"
|
"VersionInfo { crate_name: \"rustc_tools_util\", major: 0, minor: 4, patch: 0 }"
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user