Use the now available implementation of IntoIterator
for arrays
This commit is contained in:
parent
a216131c35
commit
e3ca81fd5a
17 changed files with 34 additions and 34 deletions
|
@ -417,7 +417,7 @@ impl<'a, 'hir> LoweringContext<'a, 'hir> {
|
|||
fn allocate_use_tree_hir_id_counters(&mut self, tree: &UseTree) {
|
||||
match tree.kind {
|
||||
UseTreeKind::Simple(_, id1, id2) => {
|
||||
for &id in &[id1, id2] {
|
||||
for id in [id1, id2] {
|
||||
self.lctx.allocate_hir_id_counter(id);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue