Deny the clippy::str_to_string lint

This commit is contained in:
Oliver Hamlet
2025-04-23 00:16:09 +01:00
parent e0a7d7c79f
commit 2aaa13bd7e
18 changed files with 72 additions and 76 deletions
+1 -1
View File
@@ -131,7 +131,7 @@ mod tests {
let mut plugin = PluginMetadata::new(BLANK_ESM).unwrap();
plugin.set_group("group1".into());
let condition = "file(\"missing.esp\")".to_string();
let condition = "file(\"missing.esp\")".to_owned();
let files = vec![
File::new(BLANK_ESP.into()),
File::new(BLANK_DIFFERENT_ESM.into()).with_condition(condition.clone()),
+1 -1
View File
@@ -333,7 +333,7 @@ fn merge_groups(lhs: &[Group], rhs: &[Group]) -> Vec<Group> {
let mut new_group = group.clone();
if let Some(description) = rhs_group.description() {
new_group = new_group.with_description(description.to_string());
new_group = new_group.with_description(description.to_owned());
}
if !rhs_group.after_groups().is_empty() {