File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -53,7 +53,7 @@ pub struct ServerError {
53
53
}
54
54
55
55
fn error_extensions_is_empty ( values : & Option < ErrorExtensionValues > ) -> bool {
56
- values. as_ref ( ) . map_or ( true , |values| values. 0 . is_empty ( ) )
56
+ values. as_ref ( ) . is_none_or ( |values| values. 0 . is_empty ( ) )
57
57
}
58
58
59
59
impl Debug for ServerError {
Original file line number Diff line number Diff line change @@ -370,7 +370,7 @@ impl<'a> Fields<'a> {
370
370
} ) ;
371
371
if applies_concrete_object {
372
372
root. collect_all_fields ( & ctx. with_selection_set ( selection_set) , self ) ?;
373
- } else if type_condition. map_or ( true , |condition| T :: type_name ( ) == condition) {
373
+ } else if type_condition. is_none_or ( |condition| T :: type_name ( ) == condition) {
374
374
// The fragment applies to an interface type.
375
375
self . add_set ( & ctx. with_selection_set ( selection_set) , root) ?;
376
376
}
You can’t perform that action at this time.
0 commit comments