Skip to content
This repository was archived by the owner on May 28, 2025. It is now read-only.

Commit 4304686

Browse files
committed
Consistent use of impl Trait arguments in the test's helper function.
1 parent 0bb11f4 commit 4304686

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

library/alloc/tests/slice.rs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1001,11 +1001,7 @@ fn test_split_iterators_size_hint() {
10011001
Lower,
10021002
Upper,
10031003
}
1004-
fn assert_precise_size_hints<I: Iterator>(
1005-
mut it: I,
1006-
which: Bounds,
1007-
context: impl fmt::Display,
1008-
) {
1004+
fn assert_precise_size_hints(mut it: impl Iterator, which: Bounds, context: impl fmt::Display) {
10091005
match which {
10101006
Bounds::Lower => {
10111007
let mut lower_bounds = vec![it.size_hint().0];

0 commit comments

Comments
 (0)