fix: apply automatic clippy fixes across workspace

This commit is contained in:
Riz Ashraf committed 2026-09-21 11:41:55 +01:00
1 parent 73ab5037d8
commit 5da422d23a
12 files changed
+99 -115

No files matched your search

+3 -6
View File
@@ -12,10 +12,7 @@ fn main() {
let is_dirty = Command::new("git")
.args(["status", "--porcelain"])
.output()
.ok()
.map(|out| !out.stdout.is_empty())
.unwrap_or(false);
.output().is_ok_and(|out| !out.stdout.is_empty());
if is_dirty {
git_hash.push_str("-dirty");
@@ -23,8 +20,8 @@ fn main() {
let build_date = chrono::Local::now().format("%y.%m.%d.%H%M%S").to_string();
let version = format!("{} ({})", build_date, git_hash);
println!("cargo:rustc-env=APP_VERSION={}", version);
let version = format!("{build_date} ({git_hash})");
println!("cargo:rustc-env=APP_VERSION={version}");
if std::env::var("CARGO_CFG_TARGET_OS").unwrap_or_default() == "windows" {
let mut res = winres::WindowsResource::new();