Skip to content

Commit

Permalink
Remove unnecessary clone
Browse files Browse the repository at this point in the history
  • Loading branch information
whit0694 committed Aug 25, 2016
1 parent 66ae077 commit 8610925
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions exercises/bracket-push/example.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ impl<'a> From<&'a str> for Brackets {
}
}

#[derive(Clone)]
pub struct MatchingBrackets {
collection: HashMap<char, char>,
}
Expand Down Expand Up @@ -63,7 +62,7 @@ impl Brackets {

Brackets {
raw_brackets: s.chars().filter(|c| p.contains(&c)).collect::<Vec<char>>(),
pairs: p.clone(),
pairs: p,
}
}

Expand Down

0 comments on commit 8610925

Please sign in to comment.