Skip to content

Commit 33f58ba

Browse files
committed
Fix clippy::redundant_closure
1 parent 6c93b47 commit 33f58ba

File tree

1 file changed

+1
-1
lines changed
  • src/librustc_data_structures/obligation_forest

1 file changed

+1
-1
lines changed

src/librustc_data_structures/obligation_forest/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -263,7 +263,7 @@ impl<O: ForestObligation> ObligationForest<O> {
263263
done_cache: Default::default(),
264264
waiting_cache: Default::default(),
265265
scratch: Some(vec![]),
266-
obligation_tree_id_generator: (0..).map(|i| ObligationTreeId(i)),
266+
obligation_tree_id_generator: (0..).map(ObligationTreeId),
267267
error_cache: Default::default(),
268268
}
269269
}

0 commit comments

Comments
 (0)