Skip to content

Commit 9faff05

Browse files
chore: Fix clippy lint
1 parent 2b3b234 commit 9faff05

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libs/pavex/src/request/body/json.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ fn check_json_content_type(headers: &HeaderMap) -> Result<(), ExtractJsonBodyErr
112112
};
113113

114114
let is_json_content_type = mime.type_() == "application"
115-
&& (mime.subtype() == "json" || mime.suffix().map_or(false, |name| name == "json"));
115+
&& (mime.subtype() == "json" || mime.suffix().is_some_and(|name| name == "json"));
116116
if !is_json_content_type {
117117
return Err(JsonContentTypeMismatch {
118118
actual: content_type.to_string(),

0 commit comments

Comments
 (0)