Skip to content

Commit b027d26

Browse files
committed
rust lint/checks
1 parent b31dbda commit b027d26

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

crates/apollo-mcp-server/src/operations.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -575,14 +575,14 @@ impl Operation {
575575

576576
fn operation_name(
577577
operation: &Node<OperationDefinition>,
578-
source_path: &String,
578+
source_path: &str,
579579
) -> Result<String, OperationError> {
580580
Ok(operation
581581
.name
582582
.as_ref()
583583
.ok_or_else(|| {
584584
OperationError::MissingName(
585-
source_path.clone(),
585+
source_path.to_owned(),
586586
operation.serialize().no_indent().to_string(),
587587
)
588588
})?
@@ -950,7 +950,6 @@ impl graphql::Executable for Operation {
950950

951951
#[cfg(test)]
952952
mod tests {
953-
use std::path::PathBuf;
954953
use std::{collections::HashMap, str::FromStr, sync::LazyLock};
955954

956955
use apollo_compiler::{Schema, parser::Parser, validation::Valid};

0 commit comments

Comments
 (0)