Skip to content

Commit 5d64f32

Browse files
committed
clippy: assert is_none
1 parent 11ce976 commit 5d64f32

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

http-body-util/src/limited.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ mod tests {
122122
hint.set_upper(0);
123123
assert_eq!(body.size_hint().upper(), hint.upper());
124124

125-
assert!(matches!(body.frame().await, None));
125+
assert!(body.frame().await.is_none());
126126
}
127127

128128
#[tokio::test]
@@ -207,7 +207,7 @@ mod tests {
207207
hint.set_upper(0);
208208
assert_eq!(body.size_hint().upper(), hint.upper());
209209

210-
assert!(matches!(body.frame().await, None));
210+
assert!(body.frame().await.is_none());
211211
}
212212

213213
struct SomeTrailers;

0 commit comments

Comments
 (0)