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.
1 parent 444841b commit 8527bfcCopy full SHA for 8527bfc
ui_test/src/parser.rs
@@ -66,11 +66,9 @@ pub(crate) struct ErrorMatch {
66
67
impl Condition {
68
fn parse(c: &str) -> Self {
69
- match c {
70
- "on-host" => return Condition::OnHost,
71
- _ => {}
72
- }
73
- if let Some(bits) = c.strip_suffix("bit") {
+ if c == "on-host" {
+ Condition::OnHost
+ } else if let Some(bits) = c.strip_suffix("bit") {
74
let bits: u8 = bits.parse().expect(
75
"ignore/only filter ending in 'bit' must be of the form 'Nbit' for some integer N",
76
);
0 commit comments