We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 812c83a commit 9f4e8f5Copy full SHA for 9f4e8f5
1 file changed
src/arrayvec.rs
@@ -637,7 +637,7 @@ impl<T, const CAP: usize> ArrayVec<T, CAP> {
637
/// assert_eq!(&v1[..], &[3]);
638
/// assert_eq!(&v2[..], &[1, 2]);
639
/// ```
640
- pub fn drain<R>(&mut self, range: R) -> Drain<T, CAP>
+ pub fn drain<R>(&mut self, range: R) -> Drain<'_, T, CAP>
641
where R: RangeBounds<usize>
642
{
643
// Memory safety
@@ -664,7 +664,7 @@ impl<T, const CAP: usize> ArrayVec<T, CAP> {
664
self.drain_range(start, end)
665
}
666
667
- fn drain_range(&mut self, start: usize, end: usize) -> Drain<T, CAP>
+ fn drain_range(&mut self, start: usize, end: usize) -> Drain<'_, T, CAP>
668
669
let len = self.len();
670
@@ -1126,7 +1126,7 @@ impl<T, const CAP: usize> ArrayVec<T, CAP> {
1126
let mut guard = ScopeExitGuard {
1127
value: &mut self.len,
1128
data: len,
1129
- f: move |&len, self_len| {
+ f: move |&len, self_len: &mut &mut LenUint| {
1130
**self_len = len as LenUint;
1131
1132
};
0 commit comments