mirror of
https://github.com/loot/libloot.git
synced 2026-07-27 14:16:01 -07:00
Deny the clippy::str_to_string lint
This commit is contained in:
@@ -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
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user