Simplify CandidateGenerator::next() function.
This commit is contained in:
@@ -72,12 +72,10 @@ impl CandidateGenerator {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if self.first_use {
|
if !self.first_use {
|
||||||
self.first_use = false;
|
|
||||||
} else {
|
|
||||||
self.first_use = true;
|
|
||||||
self.base += 6;
|
self.base += 6;
|
||||||
}
|
}
|
||||||
|
self.first_use = !self.first_use;
|
||||||
|
|
||||||
val
|
val
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user