Skip to content

Commit 2cf87f4

Browse files
committed
clippy clean
1 parent 06c85f3 commit 2cf87f4

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/error.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ pub struct ServerError {
5353
}
5454

5555
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())
5757
}
5858

5959
impl Debug for ServerError {

src/resolver_utils/container.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -370,7 +370,7 @@ impl<'a> Fields<'a> {
370370
});
371371
if applies_concrete_object {
372372
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) {
374374
// The fragment applies to an interface type.
375375
self.add_set(&ctx.with_selection_set(selection_set), root)?;
376376
}

0 commit comments

Comments
 (0)