Skip to content

Commit

Permalink
Use ne of iterators instead of collecting into a Vec
Browse files Browse the repository at this point in the history
  • Loading branch information
chvp committed Aug 3, 2019
1 parent 7a14e2a commit 5abc145
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/virtual_dom/vtag.rs
Original file line number Diff line number Diff line change
Expand Up @@ -546,7 +546,7 @@ impl<COMP: Component> PartialEq for VTag<COMP> {
return false;
}

if self.classes.iter().collect::<Vec<&String>>() != other.classes.iter().collect::<Vec<&String>>() {
if self.classes.iter().ne(other.classes.iter()) {
return false;
}

Expand Down

0 comments on commit 5abc145

Please sign in to comment.