Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 306f624

Browse files
authored
style: include string_to_string (TheAlgorithms#885)
1 parent 5839fb4 commit 306f624

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
@@ -145,7 +145,6 @@ used_underscore_items = { level = "allow", priority = 1 }
145145
arbitrary_source_item_ordering = { level = "allow", priority = 1 }
146146
map_with_unused_argument_over_ranges = { level = "allow", priority = 1 }
147147
precedence_bits = { level = "allow", priority = 1 }
148-
string_to_string = { level = "allow", priority = 1 }
149148
# nursery-lints:
150149
branches_sharing_code = { level = "allow", priority = 1 }
151150
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)

AltStyle によって変換されたページ (->オリジナル) /