Skip to content
This repository was archived by the owner on Jun 18, 2026. It is now read-only.

Commit 0524bb8

Browse files
fix: resolve irrefutable let pattern warning in test
1 parent b723c22 commit 0524bb8

1 file changed

Lines changed: 4 additions & 7 deletions

File tree

crates/figue/src/config_value_parser.rs

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2467,12 +2467,9 @@ mod fill_defaults_tests {
24672467
from_config_value(&input).expect("deserialization should succeed");
24682468
println!("deserialized: {:?}", deserialized);
24692469

2470-
if let EnumWithFlattenOption::Run { args } = &deserialized {
2471-
assert_eq!(args.config, None);
2472-
assert_eq!(args.language, None);
2473-
assert_eq!(args.pulse_limit, None);
2474-
} else {
2475-
panic!("expected Run variant");
2476-
}
2470+
let EnumWithFlattenOption::Run { args } = &deserialized;
2471+
assert_eq!(args.config, None);
2472+
assert_eq!(args.language, None);
2473+
assert_eq!(args.pulse_limit, None);
24772474
}
24782475
}

0 commit comments

Comments
 (0)