Skip to content

Commit

Permalink
chore: fix clippy issue
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexAegis committed Nov 21, 2020
1 parent 093c40a commit d06e225
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/2019/day16/rust/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,7 @@ fn ftt(inp: &mut Vec<isize>, offset: usize) -> String {
}
impl aoclib::Solvable<&str, String> for PartOne {
fn solve(input: &str) -> aoclib::Solution<String> {
let mut a = input
.to_string()
.clone()
.repeat(1)
let mut a = input.to_string()
.chars()
.map(|c| c.to_string().parse::<isize>().unwrap())
.collect::<Vec<isize>>();
Expand Down

0 comments on commit d06e225

Please sign in to comment.