Skip to content

Commit

Permalink
clippy: assert is_none
Browse files Browse the repository at this point in the history
  • Loading branch information
seanmonstar committed Nov 15, 2023
1 parent 11ce976 commit 5d64f32
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions http-body-util/src/limited.rs
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ mod tests {
hint.set_upper(0);
assert_eq!(body.size_hint().upper(), hint.upper());

assert!(matches!(body.frame().await, None));
assert!(body.frame().await.is_none());
}

#[tokio::test]
Expand Down Expand Up @@ -207,7 +207,7 @@ mod tests {
hint.set_upper(0);
assert_eq!(body.size_hint().upper(), hint.upper());

assert!(matches!(body.frame().await, None));
assert!(body.frame().await.is_none());
}

struct SomeTrailers;
Expand Down

0 comments on commit 5d64f32

Please sign in to comment.