mirror of
https://github.com/uutils/coreutils
synced 2024-12-12 06:12:39 +00:00
run rustfmt on src/uu/shuf/src/shuf.rs
This commit is contained in:
parent
75de5a0613
commit
29de3ee43c
1 changed files with 8 additions and 2 deletions
|
@ -279,7 +279,10 @@ impl<'a> Shufable for Vec<&'a [u8]> {
|
|||
// this is safe.
|
||||
(**self).choose(rng).unwrap()
|
||||
}
|
||||
type PartialShuffleIterator<'b> = std::iter::Copied<std::slice::Iter<'b, &'a [u8]>> where Self: 'b;
|
||||
type PartialShuffleIterator<'b>
|
||||
= std::iter::Copied<std::slice::Iter<'b, &'a [u8]>>
|
||||
where
|
||||
Self: 'b;
|
||||
fn partial_shuffle<'b>(
|
||||
&'b mut self,
|
||||
rng: &'b mut WrappedRng,
|
||||
|
@ -298,7 +301,10 @@ impl Shufable for RangeInclusive<usize> {
|
|||
fn choose(&self, rng: &mut WrappedRng) -> usize {
|
||||
rng.gen_range(self.clone())
|
||||
}
|
||||
type PartialShuffleIterator<'b> = NonrepeatingIterator<'b> where Self: 'b;
|
||||
type PartialShuffleIterator<'b>
|
||||
= NonrepeatingIterator<'b>
|
||||
where
|
||||
Self: 'b;
|
||||
fn partial_shuffle<'b>(
|
||||
&'b mut self,
|
||||
rng: &'b mut WrappedRng,
|
||||
|
|
Loading…
Reference in a new issue