Skip to content

Commit

Permalink
also fix tests and clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
rbalicki2 committed Jan 5, 2025
1 parent e4f165f commit 9897848
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/isograph_compiler/src/source_files.rs
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ pub struct SourceFiles {

impl SourceFiles {
pub fn read_and_parse_all_files(config: &CompilerConfig) -> Result<Self, BatchCompileError> {
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() {
Expand Down Expand Up @@ -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 {
Expand Down
1 change: 1 addition & 0 deletions crates/tests/tests/directives_deserialization.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ fn parse_mutation(source: &str) -> Result<Vec<ExposeFieldDirective>, Box<dyn Err
let text_source = TextSource {
relative_path_to_source_file: "dummy".intern().into(),
span: None,
current_working_directory: "cwd".intern().into(),
};
let document =
graphql_schema_parser::parse_schema_extensions(source, text_source).map_err(|e| e.item)?;
Expand Down

0 comments on commit 9897848

Please sign in to comment.