Skip to content

Commit 6020a7c

Browse files
committed
Remove unnecessary allocation.
1 parent d127ee8 commit 6020a7c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

bl3_save_edit_ui/src/views/item_editor/extra_part_info.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,13 +27,13 @@ pub fn add_extra_part_info<'a>(
2727
if let Some(positives) = &part_info.positives {
2828
positives
2929
.split(", ")
30-
.for_each(|p| positives_negatives.push(p.to_string()));
30+
.for_each(|p| positives_negatives.push(p));
3131
}
3232

3333
if let Some(negatives) = &part_info.negatives {
3434
negatives
3535
.split(", ")
36-
.for_each(|n| positives_negatives.push(n.to_string()));
36+
.for_each(|n| positives_negatives.push(n));
3737
}
3838

3939
let positives_negatives = positives_negatives.join(", ");

0 commit comments

Comments
 (0)