@@ -358,7 +358,7 @@ impl DiffWalker {
358
358
359
359
/// Split a schema into multiple schemas, one for each type in the multiple type.
360
360
/// Returns the new schema and whether the schema was changed.
361
- fn split_types ( schema_object : & mut SchemaObject ) -> ( & mut SchemaObject , bool ) {
361
+ fn split_types ( schema_object : & mut SchemaObject ) -> bool {
362
362
let is_split = match schema_object. effective_type ( ) {
363
363
InternalJsonSchemaType :: Multiple ( types)
364
364
if schema_object. subschemas ( ) . any_of . is_none ( ) =>
@@ -381,7 +381,7 @@ impl DiffWalker {
381
381
}
382
382
_ => false ,
383
383
} ;
384
- ( schema_object , is_split)
384
+ is_split
385
385
}
386
386
387
387
fn do_diff (
@@ -393,8 +393,8 @@ impl DiffWalker {
393
393
rhs : & mut SchemaObject ,
394
394
) -> Result < ( ) , Error > {
395
395
self . resolve_references ( lhs, rhs) ?;
396
- let ( lhs , is_lhs_split) = Self :: split_types ( lhs) ;
397
- let ( rhs , is_rhs_split) = Self :: split_types ( rhs) ;
396
+ let is_lhs_split = Self :: split_types ( lhs) ;
397
+ let is_rhs_split = Self :: split_types ( rhs) ;
398
398
self . diff_any_of ( json_path, is_rhs_split, lhs, rhs) ?;
399
399
if !comparing_any_of {
400
400
self . diff_instance_types ( json_path, lhs, rhs) ;
0 commit comments