Skip to content

Commit 5a087a8

Browse files
style: cargo fmt
1 parent 7bbaabc commit 5a087a8

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

src/openapi.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -602,9 +602,7 @@ impl Schema {
602602
/// (3.1 canonical nullability via `type: ["X", "null"]`.)
603603
pub fn type_array_contains_null(&self) -> bool {
604604
match self {
605-
Schema::TypedMulti { schema_types, .. } => {
606-
schema_types.contains(&SchemaType::Null)
607-
}
605+
Schema::TypedMulti { schema_types, .. } => schema_types.contains(&SchemaType::Null),
608606
_ => false,
609607
}
610608
}

0 commit comments

Comments
 (0)