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 8a4bae6 commit 15e599aCopy full SHA for 15e599a
imap-proto/src/parser/tests.rs
@@ -488,9 +488,8 @@ fn test_imap_body_structure() {
488
489
let parser = BodyStructParser::new(bodystructure);
490
491
- let element = parser.search(|b: &BodyStructure| match *b {
492
- BodyStructure::Basic { ref common, .. } if common.ty.ty == "APPLICATION" => true,
493
- _ => false,
+ let element = parser.search(|b: &BodyStructure| {
+ matches!(b, BodyStructure::Basic { ref common, .. } if common.ty.ty == "APPLICATION")
494
});
495
496
assert_eq!(element, Some(vec![2]));
0 commit comments