Skip to content

Commit d9477ac

Browse files
committed
Remove superfluous lifetime
1 parent 6e96cd8 commit d9477ac

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

tests/specializations.rs

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ where
1818
fn check_specialized<'a, V, IterItem, Iter, F>(iterator: &Iter, mapper: F)
1919
where
2020
V: Eq + Debug,
21-
IterItem: 'a,
2221
Iter: Iterator<Item = IterItem> + Clone + 'a,
2322
F: Fn(Box<dyn Iterator<Item = IterItem> + 'a>) -> V,
2423
{
@@ -28,12 +27,12 @@ where
2827
)
2928
}
3029

31-
fn check_specialized_count_last_nth_sizeh<'a, IterItem, Iter>(
30+
fn check_specialized_count_last_nth_sizeh<IterItem, Iter>(
3231
it: &Iter,
3332
known_expected_size: Option<usize>,
3433
) where
35-
IterItem: 'a + Eq + Debug,
36-
Iter: Iterator<Item = IterItem> + Clone + 'a,
34+
IterItem: Eq + Debug,
35+
Iter: Iterator<Item = IterItem> + Clone,
3736
{
3837
let size = it.clone().count();
3938
if let Some(expected_size) = known_expected_size {

0 commit comments

Comments
 (0)