- Removed notes
- Removed superfluous uses of `where`
This commit is contained in:
2023-05-23 18:39:45 +01:00
parent 8bb82b8ead
commit e99ade92ba
63 changed files with 76 additions and 1973 deletions

View File

@@ -23,15 +23,16 @@ macro_rules! box_chain {
};
}
pub fn box_flatten<'a, T: 'a, I: 'a, J: 'a>(i: I) -> BoxedIter<'a, T>
where
J: Iterator<Item = T>,
I: Iterator<Item = J>,
{
pub fn box_flatten<'a,
T: 'a,
I: 'a + Iterator<Item = J>,
J: 'a + Iterator<Item = T>
>(i: I) -> BoxedIter<'a, T> {
Box::new(i.flatten())
}
pub fn into_boxed_iter<'a, T: 'a>(t: T) -> BoxedIter<'a, <T as IntoIterator>::Item>
where T: IntoIterator {
pub fn into_boxed_iter<'a,
T: 'a + IntoIterator
>(t: T) -> BoxedIter<'a, <T as IntoIterator>::Item> {
Box::new(t.into_iter())
}