diff --git a/lib/src/commit.rs b/lib/src/commit.rs index 7a82aefa5e..4116ff76d6 100644 --- a/lib/src/commit.rs +++ b/lib/src/commit.rs @@ -164,15 +164,15 @@ impl Commit { } pub trait CommitIteratorExt<'c, I> { - fn ids(self) -> impl Iterator + 'c; + fn ids(self) -> impl Iterator; } impl<'c, I> CommitIteratorExt<'c, I> for I where - I: Iterator + 'c, + I: Iterator, { - fn ids(self) -> impl Iterator + 'c { - Box::new(self.map(|commit| commit.id())) + fn ids(self) -> impl Iterator { + self.map(|commit| commit.id()) } }