mirror of
https://github.com/rust-lang/rust.git
synced 2025-02-03 10:33:34 +00:00
Consistent use of impl Trait
arguments in the test's helper function.
This commit is contained in:
parent
0bb11f43f6
commit
4304686049
@ -1001,11 +1001,7 @@ fn test_split_iterators_size_hint() {
|
||||
Lower,
|
||||
Upper,
|
||||
}
|
||||
fn assert_precise_size_hints<I: Iterator>(
|
||||
mut it: I,
|
||||
which: Bounds,
|
||||
context: impl fmt::Display,
|
||||
) {
|
||||
fn assert_precise_size_hints(mut it: impl Iterator, which: Bounds, context: impl fmt::Display) {
|
||||
match which {
|
||||
Bounds::Lower => {
|
||||
let mut lower_bounds = vec![it.size_hint().0];
|
||||
|
Loading…
Reference in New Issue
Block a user