ksud: make clippy happy (#2683)

e1be06240d/clippy_lints/src/format_args.rs (L168)
This commit is contained in:
5ec1cff
2025-07-18 17:10:40 +08:00
committed by ShirkNeko
parent c1c648e34d
commit a041b90891
9 changed files with 147 additions and 66 deletions

View File

@@ -23,12 +23,7 @@ fn get_git_version() -> Result<(u32, String), std::io::Error> {
.output()?
.stdout,
)
.map_err(|_| {
std::io::Error::new(
std::io::ErrorKind::Other,
"Failed to read git describe stdout",
)
})?;
.map_err(|_| std::io::Error::other("Failed to read git describe stdout"))?;
let version_name = version_name.trim_start_matches('v').to_string();
Ok((version_code, version_name))
}