File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed
crates/apollo-mcp-server/src Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -575,14 +575,14 @@ impl Operation {
575
575
576
576
fn operation_name (
577
577
operation : & Node < OperationDefinition > ,
578
- source_path : & String ,
578
+ source_path : & str ,
579
579
) -> Result < String , OperationError > {
580
580
Ok ( operation
581
581
. name
582
582
. as_ref ( )
583
583
. ok_or_else ( || {
584
584
OperationError :: MissingName (
585
- source_path. clone ( ) ,
585
+ source_path. to_owned ( ) ,
586
586
operation. serialize ( ) . no_indent ( ) . to_string ( ) ,
587
587
)
588
588
} ) ?
@@ -950,7 +950,6 @@ impl graphql::Executable for Operation {
950
950
951
951
#[ cfg( test) ]
952
952
mod tests {
953
- use std:: path:: PathBuf ;
954
953
use std:: { collections:: HashMap , str:: FromStr , sync:: LazyLock } ;
955
954
956
955
use apollo_compiler:: { Schema , parser:: Parser , validation:: Valid } ;
You can’t perform that action at this time.
0 commit comments