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.
combinations_with_replacement
1 parent 7a9a5f8 commit ef5805aCopy full SHA for ef5805a
src/combinations_with_replacement.rs
@@ -115,7 +115,7 @@ where
115
fn next(&mut self) -> Option<Self::Item> {
116
if self.first {
117
// In empty edge cases, stop iterating immediately
118
- if !((&self.indices).borrow().is_empty() || self.pool.get_next()) {
+ if !(self.indices.borrow().is_empty() || self.pool.get_next()) {
119
return None;
120
}
121
self.first = false;
@@ -128,7 +128,7 @@ where
128
fn nth(&mut self, n: usize) -> Option<Self::Item> {
129
130
131
132
133
134
0 commit comments