Remove usage of is_some_and
(not supported in rustc 1.60)
This commit is contained in:
parent
3b3870ca82
commit
b87b6ebb6c
1 changed files with 1 additions and 1 deletions
|
@ -81,7 +81,7 @@ pub fn apply_internal_enum_tag(
|
||||||
deny_unknown_fields: bool,
|
deny_unknown_fields: bool,
|
||||||
) {
|
) {
|
||||||
let obj = schema.ensure_object();
|
let obj = schema.ensure_object();
|
||||||
let is_unit = obj.get("type").is_some_and(|t| t.as_str() == Some("null"));
|
let is_unit = obj.get("type").and_then(|t| t.as_str()) == Some("null");
|
||||||
|
|
||||||
obj.insert("type".to_owned(), "object".into());
|
obj.insert("type".to_owned(), "object".into());
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue