We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 296ae2b commit 0fbb567Copy full SHA for 0fbb567
src/seq/slice.rs
@@ -87,7 +87,11 @@ pub trait IndexedRandom: Index<usize> {
87
/// }
88
/// ```
89
#[cfg(feature = "alloc")]
90
- fn choose_multiple<R>(&self, rng: &mut R, amount: usize) -> SliceChooseIter<Self, Self::Output>
+ fn choose_multiple<R>(
91
+ &self,
92
+ rng: &mut R,
93
+ amount: usize,
94
+ ) -> SliceChooseIter<'_, Self, Self::Output>
95
where
96
Self::Output: Sized,
97
R: Rng + ?Sized,
@@ -209,7 +213,7 @@ pub trait IndexedRandom: Index<usize> {
209
213
rng: &mut R,
210
214
amount: usize,
211
215
weight: F,
212
- ) -> Result<SliceChooseIter<Self, Self::Output>, WeightError>
216
+ ) -> Result<SliceChooseIter<'_, Self, Self::Output>, WeightError>
217
218
219
0 commit comments