Skip to content

Commit 8b6ffe3

Browse files
authored
style: include unnecessary_join (#752)
1 parent 20df571 commit 8b6ffe3

File tree

2 files changed

+1
-6
lines changed

2 files changed

+1
-6
lines changed

Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,6 @@ stable_sort_primitive = { level = "allow", priority = 1 }
7575
too_many_lines = { level = "allow", priority = 1 }
7676
trivially_copy_pass_by_ref = { level = "allow", priority = 1 }
7777
unnecessary_box_returns = { level = "allow", priority = 1 }
78-
unnecessary_join = { level = "allow", priority = 1 }
7978
unnecessary_wraps = { level = "allow", priority = 1 }
8079
unnested_or_patterns = { level = "allow", priority = 1 }
8180
unreadable_literal = { level = "allow", priority = 1 }

src/ciphers/morse_code.rs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -96,11 +96,7 @@ fn _decode_token(string: &str) -> String {
9696
}
9797

9898
fn _decode_part(string: &str) -> String {
99-
string
100-
.split(' ')
101-
.map(_decode_token)
102-
.collect::<Vec<String>>()
103-
.join("")
99+
string.split(' ').map(_decode_token).collect::<String>()
104100
}
105101

106102
/// Convert morse code to ascii.

0 commit comments

Comments
 (0)