]> git.lizzy.rs Git - rust.git/commitdiff
Consistent use of `impl Trait` arguments in the test's helper function.
authorFrank Steffahn <frank.steffahn@stu.uni-kiel.de>
Fri, 13 Aug 2021 10:02:03 +0000 (12:02 +0200)
committerFrank Steffahn <frank.steffahn@stu.uni-kiel.de>
Fri, 13 Aug 2021 10:02:35 +0000 (12:02 +0200)
library/alloc/tests/slice.rs

index 4211cd42b02e20f03953bf5afbb892bba0545031..198f467eea3528a0c5def7d4d01456fd5a1ff67a 100644 (file)
@@ -1001,11 +1001,7 @@ enum Bounds {
         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];