File tree Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -68,7 +68,7 @@ pub fn check_operation_document<'src, S: Text<'src>>(
68
68
. take ( idx)
69
69
. find ( |other| match other {
70
70
ExecutableDefinition :: OperationDefinition ( def) => {
71
- def. name . map_or ( false , |n| n. name == name. name )
71
+ def. name . is_some_and ( |n| n. name == name. name )
72
72
}
73
73
ExecutableDefinition :: FragmentDefinition ( _) => false ,
74
74
} ) ;
Original file line number Diff line number Diff line change @@ -252,7 +252,7 @@ fn check_interface(
252
252
& definitions. type_system ,
253
253
f. r#type . unwrapped_type ( ) . name . name ,
254
254
)
255
- . map_or ( false , |k| !k. is_output_type ( ) )
255
+ . is_some_and ( |k| !k. is_output_type ( ) )
256
256
{
257
257
result. push (
258
258
CheckErrorMessage :: NoInputType {
Original file line number Diff line number Diff line change @@ -57,7 +57,7 @@ pub fn run_generate(mut context: CliContext) -> Result<CliContext> {
57
57
&& schema_output
58
58
. as_ref ( )
59
59
. and_then ( |schema_output| schema_output. file_name ( ) )
60
- . map_or ( false , |name| name. to_string_lossy ( ) . ends_with ( ".d.ts" ) )
60
+ . is_some_and ( |name| name. to_string_lossy ( ) . ends_with ( ".d.ts" ) )
61
61
{
62
62
return Err ( CliError :: CannotEmitRuntimeToDts . into ( ) ) ;
63
63
}
You can’t perform that action at this time.
0 commit comments