Skip to content

Commit 520ceb6

Browse files
committed
Un-hide lifetimes in return types
1 parent 66911fe commit 520ceb6

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/seq/slice.rs

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,11 @@ pub trait IndexedRandom: Index<usize> {
8787
/// }
8888
/// ```
8989
#[cfg(feature = "alloc")]
90-
fn choose_multiple<R>(&self, rng: &mut R, amount: usize) -> SliceChooseIter<Self, Self::Output>
90+
fn choose_multiple<R>(
91+
&self,
92+
rng: &mut R,
93+
amount: usize,
94+
) -> SliceChooseIter<'_, Self, Self::Output>
9195
where
9296
Self::Output: Sized,
9397
R: Rng + ?Sized,
@@ -209,7 +213,7 @@ pub trait IndexedRandom: Index<usize> {
209213
rng: &mut R,
210214
amount: usize,
211215
weight: F,
212-
) -> Result<SliceChooseIter<Self, Self::Output>, WeightError>
216+
) -> Result<SliceChooseIter<'_, Self, Self::Output>, WeightError>
213217
where
214218
Self::Output: Sized,
215219
R: Rng + ?Sized,

0 commit comments

Comments
 (0)