Skip to content

Commit ef5805a

Browse files
mendelsshopphimuemue
authored andcommitted
Listen to clippy in combinations_with_replacement
1 parent 7a9a5f8 commit ef5805a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/combinations_with_replacement.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ where
115115
fn next(&mut self) -> Option<Self::Item> {
116116
if self.first {
117117
// In empty edge cases, stop iterating immediately
118-
if !((&self.indices).borrow().is_empty() || self.pool.get_next()) {
118+
if !(self.indices.borrow().is_empty() || self.pool.get_next()) {
119119
return None;
120120
}
121121
self.first = false;
@@ -128,7 +128,7 @@ where
128128
fn nth(&mut self, n: usize) -> Option<Self::Item> {
129129
if self.first {
130130
// In empty edge cases, stop iterating immediately
131-
if !((&self.indices).borrow().is_empty() || self.pool.get_next()) {
131+
if !(self.indices.borrow().is_empty() || self.pool.get_next()) {
132132
return None;
133133
}
134134
self.first = false;

0 commit comments

Comments
 (0)