diff options
author | Sebastian Dröge <sebastian@centricular.com> | 2023-01-25 11:23:46 +0300 |
---|---|---|
committer | Sebastian Dröge <sebastian@centricular.com> | 2023-01-25 11:31:19 +0300 |
commit | 3b4c48d9f55ae5bfb6eb4fe485edf54f8916d955 (patch) | |
tree | 69f065a49d4035b924d0c1f7025186d597a55590 /version-helper | |
parent | ad3f1cf534b475d47d4ef4d0e8916d507c6e56e5 (diff) |
Fix various new clippy warnings
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs/-/merge_requests/1062>
Diffstat (limited to 'version-helper')
-rw-r--r-- | version-helper/src/git.rs | 2 | ||||
-rw-r--r-- | version-helper/src/lib.rs | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/version-helper/src/git.rs b/version-helper/src/git.rs index 68bb20662..0da474ae8 100644 --- a/version-helper/src/git.rs +++ b/version-helper/src/git.rs @@ -24,7 +24,7 @@ pub fn repo_hash<P: AsRef<Path>>(path: P) -> Option<(String, String)> { let date = s.next()?; let hash = if dirty(path) { - format!("{}+", hash) + format!("{hash}+") } else { hash.into() }; diff --git a/version-helper/src/lib.rs b/version-helper/src/lib.rs index cc7455d78..899514a80 100644 --- a/version-helper/src/lib.rs +++ b/version-helper/src/lib.rs @@ -74,8 +74,8 @@ pub fn info() { ("RELEASE".into(), date.format("%Y-%m-%d").to_string()) }); - println!("cargo:rustc-env=COMMIT_ID={}", commit_id); - println!("cargo:rustc-env=BUILD_REL_DATE={}", commit_date); + println!("cargo:rustc-env=COMMIT_ID={commit_id}"); + println!("cargo:rustc-env=BUILD_REL_DATE={commit_date}"); } fn cargo_mtime_date(crate_dir: path::PathBuf) -> Option<chrono::DateTime<chrono::Utc>> { |