Skip to content

Commit

Permalink
Removes unnecessary .replace() call
Browse files Browse the repository at this point in the history
  • Loading branch information
FrankKair committed Feb 13, 2019
1 parent d5e9f07 commit 6684343
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/022/p022.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,7 @@ fn load_names() -> Vec<String> {
.expect("Error reading");

let mut names = contents
.replace("\"", " ")
.replace(" ", "")
.replace("\"", "")
.split(',')
.map(|s| s.to_string())
.collect::<Vec<String>>();
Expand Down

0 comments on commit 6684343

Please sign in to comment.