Skip to content

Commit bb10264

Browse files
committed
Make rust_tools_util package compatible with current stable by lowering rust edition to 2021.
1 parent 943d604 commit bb10264

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

rustc_tools_util/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
[package]
22
name = "rustc_tools_util"
3-
version = "0.4.1"
3+
version = "0.4.2"
44
description = "small helper to generate version information for git packages"
55
repository = "https://github.com/rust-lang/rust-clippy"
66
readme = "README.md"
77
license = "MIT OR Apache-2.0"
88
keywords = ["rustc", "tool", "git", "version", "hash"]
99
categories = ["development-tools"]
10-
edition = "2024"
10+
edition = "2021"
1111

1212
[dependencies]

rustc_tools_util/src/lib.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ mod test {
188188
let vi = get_version_info!();
189189
assert_eq!(vi.major, 0);
190190
assert_eq!(vi.minor, 4);
191-
assert_eq!(vi.patch, 1);
191+
assert_eq!(vi.patch, 2);
192192
assert_eq!(vi.crate_name, "rustc_tools_util");
193193
// hard to make positive tests for these since they will always change
194194
assert!(vi.commit_hash.is_none());
@@ -200,7 +200,7 @@ mod test {
200200
#[test]
201201
fn test_display_local() {
202202
let vi = get_version_info!();
203-
assert_eq!(vi.to_string(), "rustc_tools_util 0.4.1");
203+
assert_eq!(vi.to_string(), "rustc_tools_util 0.4.2");
204204
}
205205

206206
#[test]
@@ -209,7 +209,7 @@ mod test {
209209
let s = format!("{vi:?}");
210210
assert_eq!(
211211
s,
212-
"VersionInfo { crate_name: \"rustc_tools_util\", major: 0, minor: 4, patch: 1 }"
212+
"VersionInfo { crate_name: \"rustc_tools_util\", major: 0, minor: 4, patch: 2 }"
213213
);
214214
}
215215
}

0 commit comments

Comments
 (0)