From 9897848c8f0936f6154cb6749d6d6d8a7e01ba8f Mon Sep 17 00:00:00 2001 From: Robert Balicki Date: Mon, 6 Jan 2025 03:33:58 +0900 Subject: [PATCH] also fix tests and clippy --- crates/isograph_compiler/src/source_files.rs | 4 ++-- crates/tests/tests/directives_deserialization.rs | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/crates/isograph_compiler/src/source_files.rs b/crates/isograph_compiler/src/source_files.rs index e018976a..a8c7105b 100644 --- a/crates/isograph_compiler/src/source_files.rs +++ b/crates/isograph_compiler/src/source_files.rs @@ -31,7 +31,7 @@ pub struct SourceFiles { impl SourceFiles { pub fn read_and_parse_all_files(config: &CompilerConfig) -> Result { - let schema = read_and_parse_graphql_schema(&config)?; + let schema = read_and_parse_graphql_schema(config)?; let mut schema_extensions = HashMap::new(); for schema_extension_path in config.schema_extensions.iter() { @@ -114,7 +114,7 @@ impl SourceFiles { ) -> Result<(), BatchCompileError> { match event_kind { SourceEventKind::CreateOrModify(_) => { - self.schema = read_and_parse_graphql_schema(&config)?; + self.schema = read_and_parse_graphql_schema(config)?; } SourceEventKind::Rename((_, target_path)) => { if config.schema.absolute_path != *target_path { diff --git a/crates/tests/tests/directives_deserialization.rs b/crates/tests/tests/directives_deserialization.rs index ff08f546..5ec6f4de 100644 --- a/crates/tests/tests/directives_deserialization.rs +++ b/crates/tests/tests/directives_deserialization.rs @@ -22,6 +22,7 @@ fn parse_mutation(source: &str) -> Result, Box