Skip to content

Commit fca594f

Browse files
committed
style: include string_to_string
1 parent bc3ef17 commit fca594f

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,6 @@ used_underscore_items = { level = "allow", priority = 1 }
146146
arbitrary_source_item_ordering = { level = "allow", priority = 1 }
147147
map_with_unused_argument_over_ranges = { level = "allow", priority = 1 }
148148
precedence_bits = { level = "allow", priority = 1 }
149-
string_to_string = { level = "allow", priority = 1 }
150149
# nursery-lints:
151150
branches_sharing_code = { level = "allow", priority = 1 }
152151
cognitive_complexity = { level = "allow", priority = 1 }

src/ciphers/transposition.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ fn decrypt(mut msg: String, key_order: Vec<usize>) -> String {
161161

162162
for key in key_order {
163163
if let Some((_, column)) = indexed_vec.iter().find(|(key_index, _)| key_index == &key) {
164-
decrypted_vec.push(column.to_string());
164+
decrypted_vec.push(column.clone());
165165
}
166166
}
167167

0 commit comments

Comments
 (0)