diff --git a/http-body-util/src/limited.rs b/http-body-util/src/limited.rs index 239c46c..c4c5c8b 100644 --- a/http-body-util/src/limited.rs +++ b/http-body-util/src/limited.rs @@ -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] @@ -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;