Fix new clippy errors

The failing lint was added in Rust v1.95.0.
This commit is contained in:
Oliver Hamlet
2026-04-28 19:00:22 +01:00
parent 391b9ad7c9
commit 1970a0b30c
4 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -36,7 +36,7 @@ impl std::fmt::Display for VerboseError {
Ok(())
}
Self::UndefinedGroupError(group) => {
write!(f, "UndefinedGroupError: {group}",)
write!(f, "UndefinedGroupError: {group}")
}
Self::PluginNotLoadedError(plugin) => write!(f, "PluginNotLoadedError: {plugin}"),
Self::InvalidArgument(e) => {
+1 -1
View File
@@ -373,7 +373,7 @@ impl Filename {
fn __repr__(slf: &Bound<'_, Self>) -> PyResult<String> {
let class_name = slf.get_type().qualname()?;
let inner = &slf.borrow().0;
Ok(format!("{}({})", class_name, inner.as_str(),))
Ok(format!("{}({})", class_name, inner.as_str()))
}
}
+1 -1
View File
@@ -366,7 +366,7 @@ impl std::fmt::Display for MetadataDocumentParsingError {
Self::IoError(_) => write!(f, "an I/O error occurred"),
Self::MetadataParsingError(_) => write!(f, "a metadata parsing error occurred"),
Self::YamlMergeKeyError(_) => {
write!(f, "an error occurred while resolving YAML merge keys",)
write!(f, "an error occurred while resolving YAML merge keys")
}
}
}
+1 -1
View File
@@ -104,7 +104,7 @@ mod tests {
#[test]
fn should_be_version_numbers_separated_by_periods() {
let expected =
format!("{LIBLOOT_VERSION_MAJOR}.{LIBLOOT_VERSION_MINOR}.{LIBLOOT_VERSION_PATCH}",);
format!("{LIBLOOT_VERSION_MAJOR}.{LIBLOOT_VERSION_MINOR}.{LIBLOOT_VERSION_PATCH}");
assert_eq!(expected, libloot_version());
}