diff options
| author | Dylan DPC <dylan.dpc@gmail.com> | 2020-03-01 17:23:30 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-03-01 17:23:30 +0100 |
| commit | 87284d7e79da9eb106ba120600d4fb4767897869 (patch) | |
| tree | e163144ce7521ab42230ab14675c6e5dac29ea76 /src/libstd | |
| parent | 55d0a8b201c0b266be48723c30e4794a0068e96e (diff) | |
| parent | 56a3da3bd0e2f6b5963913e998c74266cf7cff7b (diff) | |
| download | rust-87284d7e79da9eb106ba120600d4fb4767897869.tar.gz rust-87284d7e79da9eb106ba120600d4fb4767897869.zip | |
Rollup merge of #69569 - matthiaskrgr:nonminimal_bool, r=mark-Simulacrum
simplify boolean expressions
Diffstat (limited to 'src/libstd')
| -rw-r--r-- | src/libstd/net/parser.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libstd/net/parser.rs b/src/libstd/net/parser.rs index 868a7e261c4..3f38ee54710 100644 --- a/src/libstd/net/parser.rs +++ b/src/libstd/net/parser.rs @@ -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; } |
