Skip to content

Commit

Permalink
Fix clippy::redundant_closure
Browse files Browse the repository at this point in the history
  • Loading branch information
Xanewok committed Jun 26, 2019
1 parent 6c93b47 commit 33f58ba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/librustc_data_structures/obligation_forest/mod.rs
Expand Up @@ -263,7 +263,7 @@ impl<O: ForestObligation> ObligationForest<O> {
done_cache: Default::default(),
waiting_cache: Default::default(),
scratch: Some(vec![]),
obligation_tree_id_generator: (0..).map(|i| ObligationTreeId(i)),
obligation_tree_id_generator: (0..).map(ObligationTreeId),
error_cache: Default::default(),
}
}
Expand Down

0 comments on commit 33f58ba

Please sign in to comment.