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 e27b3ee commit 8ae44e0Copy full SHA for 8ae44e0
src/permutations.rs
@@ -69,16 +69,15 @@ where
69
&mut PermutationState::Start { k } => {
70
if k == 0 {
71
*state = PermutationState::End;
72
- Some(Vec::new())
73
} else {
74
vals.prefill(k);
75
if vals.len() != k {
76
77
return None;
78
}
79
*state = PermutationState::Buffered { k, min_n: k };
80
- Some(vals[0..k].to_vec())
81
+ Some(vals[0..k].to_vec())
82
83
PermutationState::Buffered { ref k, min_n } => {
84
if vals.get_next() {
0 commit comments