@@ -291,7 +291,7 @@ impl DiagnosticData {
291
291
OutputType { .. } => "OutputType" ,
292
292
InputType { .. } => "InputType" ,
293
293
VariableInputType { .. } => "VariableInputType" ,
294
- QueryRootOperationType { .. } => "QueryRootOperationType" ,
294
+ QueryRootOperationType => "QueryRootOperationType" ,
295
295
UnusedVariable { .. } => "UnusedVariable" ,
296
296
RootOperationObjectType { .. } => "RootOperationObjectType" ,
297
297
UnionMemberObjectType { .. } => "UnionMemberObjectType" ,
@@ -320,9 +320,7 @@ impl DiagnosticData {
320
320
Details :: ExecutableBuildError ( error) => Some ( match error {
321
321
ExecutableBuildError :: UndefinedField { .. } => "UndefinedField" ,
322
322
ExecutableBuildError :: TypeSystemDefinition { .. } => "TypeSystemDefinition" ,
323
- ExecutableBuildError :: AmbiguousAnonymousOperation { .. } => {
324
- "AmbiguousAnonymousOperation"
325
- }
323
+ ExecutableBuildError :: AmbiguousAnonymousOperation => "AmbiguousAnonymousOperation" ,
326
324
ExecutableBuildError :: OperationNameCollision { .. } => "OperationNameCollision" ,
327
325
ExecutableBuildError :: FragmentNameCollision { .. } => "FragmentNameCollision" ,
328
326
ExecutableBuildError :: UndefinedRootOperation { .. } => "UndefinedRootOperation" ,
@@ -419,7 +417,7 @@ impl DiagnosticData {
419
417
VariableInputType { name, ty, .. } => Some ( format ! (
420
418
r#"Variable "${name}" cannot be non-input type "{ty}"."#
421
419
) ) ,
422
- QueryRootOperationType { .. } => None ,
420
+ QueryRootOperationType => None ,
423
421
UnusedVariable { name } => {
424
422
Some ( format ! ( r#"Variable "${name}" is never used."# ) )
425
423
}
@@ -681,10 +679,10 @@ impl ToCliReport for DiagnosticData {
681
679
report. with_label_opt ( self . location , format_args ! ( "`{name}` redefined here" ) ) ;
682
680
report. with_help ( "remove or rename one of the definitions, or use `extend`" ) ;
683
681
}
684
- SchemaBuildError :: BuiltInScalarTypeRedefinition { .. } => {
682
+ SchemaBuildError :: BuiltInScalarTypeRedefinition => {
685
683
report. with_label_opt ( self . location , "remove this scalar definition" ) ;
686
684
}
687
- SchemaBuildError :: OrphanSchemaExtension { .. } => {
685
+ SchemaBuildError :: OrphanSchemaExtension => {
688
686
report. with_label_opt ( self . location , "extension here" )
689
687
}
690
688
SchemaBuildError :: OrphanTypeExtension { .. } => {
@@ -761,7 +759,7 @@ impl ToCliReport for DiagnosticData {
761
759
self . location ,
762
760
"remove this definition, or use `parse_mixed()`" ,
763
761
) ,
764
- ExecutableBuildError :: AmbiguousAnonymousOperation { .. } => {
762
+ ExecutableBuildError :: AmbiguousAnonymousOperation => {
765
763
report. with_label_opt ( self . location , "provide a name for this definition" ) ;
766
764
report. with_help (
767
765
"GraphQL requires operations to be named if the document has more than one" ,
0 commit comments