Skip to content

Commit 8527bfc

Browse files
committed
clippy
1 parent 444841b commit 8527bfc

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

ui_test/src/parser.rs

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -66,11 +66,9 @@ pub(crate) struct ErrorMatch {
6666

6767
impl Condition {
6868
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") {
69+
if c == "on-host" {
70+
Condition::OnHost
71+
} else if let Some(bits) = c.strip_suffix("bit") {
7472
let bits: u8 = bits.parse().expect(
7573
"ignore/only filter ending in 'bit' must be of the form 'Nbit' for some integer N",
7674
);

0 commit comments

Comments
 (0)