Skip to content

Commit

Permalink
Fix clippy issues
Browse files Browse the repository at this point in the history
  • Loading branch information
rossnomann committed Dec 5, 2023
1 parent 6c5bc01 commit 7de7fd8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/access/predicate/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ async fn access_predicate() {
.unwrap();
let input_granted = HandlerInput::from(update_granted);
let result = predicate.handle(input_granted).await;
assert!(matches!(result, Ok(true)));
assert!(result.unwrap());

let update_forbidden: Update = serde_json::from_value(serde_json::json!(
{
Expand All @@ -74,7 +74,7 @@ async fn access_predicate() {
.unwrap();
let input_forbidden = HandlerInput::from(update_forbidden);
let result = predicate.handle(input_forbidden).await;
assert!(matches!(result, Ok(false)));
assert!(!result.unwrap());

let update_error: Update = serde_json::from_value(serde_json::json!(
{
Expand All @@ -91,5 +91,5 @@ async fn access_predicate() {
.unwrap();
let input_error = HandlerInput::from(update_error);
let result = predicate.handle(input_error).await;
assert!(matches!(result, Err(_)));
assert!(result.is_err());
}

0 comments on commit 7de7fd8

Please sign in to comment.