simplify boolean expressions

This commit is contained in:
Matthias Krüger 2020-02-29 01:56:37 +01:00
parent 0eb878d2aa
commit 56a3da3bd0
8 changed files with 13 additions and 13 deletions

View file

@ -206,7 +206,7 @@ impl<'a> Parser<'a> {
}
// read `::` if previous code parsed less than 8 groups
if !self.read_given_char(':').is_some() || !self.read_given_char(':').is_some() {
if self.read_given_char(':').is_none() || self.read_given_char(':').is_none() {
return None;
}