We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6a6166f commit 901afebCopy full SHA for 901afeb
src/diff_walker.rs
@@ -149,8 +149,7 @@ impl<F: FnMut(Change)> DiffWalker<F> {
149
let lhs_additional_properties = lhs
150
.object()
151
.additional_properties
152
- .as_ref()
153
- .map_or(true, |x| x.clone().into_object().is_true());
+ .as_ref().is_none_or(|x| x.clone().into_object().is_true());
154
155
for removed in lhs_props.difference(&rhs_props) {
156
(self.cb)(Change {
@@ -537,8 +536,7 @@ impl JsonSchemaExt for SchemaObject {
537
536
} else if self
538
.subschemas()
539
.not
540
541
- .map_or(false, |x| x.clone().into_object().is_true())
+ .as_ref().is_some_and(|x| x.clone().into_object().is_true())
542
{
543
InternalJsonSchemaType::Never
544
} else {
0 commit comments