diff --git a/src/common.rs b/src/common.rs index dfeabe0..665210d 100644 --- a/src/common.rs +++ b/src/common.rs @@ -156,9 +156,6 @@ mod tests { ); let perm = "security-events: write"; - assert!(matches!( - serde_yaml::from_str::(perm), - Ok(_) - )); + assert!(serde_yaml::from_str::(perm).is_ok()); } }