mirror of
https://github.com/loot/libloot.git
synced 2026-07-27 14:16:01 -07:00
Fix new clippy errors
The failing lint was added in Rust v1.95.0.
This commit is contained in:
+1
-1
@@ -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) => {
|
||||
|
||||
@@ -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()))
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -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
@@ -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());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user