diff options
Diffstat (limited to 'vendor/git2/src/message.rs')
-rw-r--r-- | vendor/git2/src/message.rs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/vendor/git2/src/message.rs b/vendor/git2/src/message.rs index 398f11659..a7041da3a 100644 --- a/vendor/git2/src/message.rs +++ b/vendor/git2/src/message.rs @@ -1,6 +1,7 @@ use core::ops::Range; use std::ffi::CStr; use std::ffi::CString; +use std::iter::FusedIterator; use std::ptr; use libc::{c_char, c_int}; @@ -171,6 +172,8 @@ impl<'pair> Iterator for MessageTrailersStrsIterator<'pair> { } } +impl FusedIterator for MessageTrailersStrsIterator<'_> {} + impl ExactSizeIterator for MessageTrailersStrsIterator<'_> { fn len(&self) -> usize { self.0.range.len() @@ -213,6 +216,8 @@ impl<'pair> Iterator for MessageTrailersBytesIterator<'pair> { } } +impl FusedIterator for MessageTrailersBytesIterator<'_> {} + impl ExactSizeIterator for MessageTrailersBytesIterator<'_> { fn len(&self) -> usize { self.0.range.len() |