Skip to content

Commit

Permalink
nit(check_enum): remove unnecessary collect
Browse files Browse the repository at this point in the history
  • Loading branch information
kartva committed Mar 9, 2024
1 parent b12ed6b commit 620a52f
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions components/properties/src/props.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2525,10 +2525,9 @@ mod test_enumerated_property_completeness {
})
.collect();

let consts: BTreeMap<_, _> = consts
let consts = consts
.into_iter()
.map(|(name, value)| (*value, (name.to_string(), "Consts")))
.collect();
.map(|(name, value)| (*value, (name.to_string(), "Consts")));

let mut diff = Vec::new();
for t @ (value, _) in consts {
Expand Down

0 comments on commit 620a52f

Please sign in to comment.