From ecefff05a83a68798622569c91598c1ab2cccf2f Mon Sep 17 00:00:00 2001 From: Predrag Gruevski <2348618+obi1kenobi@users.noreply.github.com> Date: Mon, 10 Apr 2023 10:10:11 -0400 Subject: [PATCH] Use `&self` instead of `&mut self` in `impl Adapter`. (#128) --- Cargo.lock | 8 ++++---- Cargo.toml | 2 +- src/adapter.rs | 8 ++++---- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index aa9d689..b18c6ae 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -584,9 +584,9 @@ dependencies = [ [[package]] name = "trustfall" -version = "0.4.0-beta.0" +version = "0.4.0-beta.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cbca5cde4e5f80224282cff66037c68100f874f72c28452728b2eaeb0e04b3c1" +checksum = "6d327f64a9d7d5cbbffe6c147503c16dbee69a1f51ef9b36aa8503af50f7c512" dependencies = [ "anyhow", "trustfall_core", @@ -608,9 +608,9 @@ dependencies = [ [[package]] name = "trustfall_core" -version = "0.4.0-beta.0" +version = "0.4.0-beta.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "20be4c037e871b44c4b584fb4876cc5490e250fcec45f049903dda1a04ae4cd1" +checksum = "7a24fb8dfedc8c838389949a8657db5746b6a3a5d20b211cfa0320fe7e86b4d0" dependencies = [ "async-graphql-parser", "async-graphql-value", diff --git a/Cargo.toml b/Cargo.toml index d4430a5..529a320 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -11,7 +11,7 @@ readme = "./README.md" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html [dependencies] -trustfall = "0.4.0-beta" +trustfall = "0.4.0-beta.1" rustdoc-types = "0.17.0" [dev-dependencies] diff --git a/src/adapter.rs b/src/adapter.rs index d590b43..b1424c1 100644 --- a/src/adapter.rs +++ b/src/adapter.rs @@ -617,7 +617,7 @@ impl<'a> Adapter<'a> for RustdocAdapter<'a> { type Vertex = Vertex<'a>; fn resolve_starting_vertices( - &mut self, + &self, edge_name: &Arc, _parameters: &EdgeParameters, _resolve_info: &ResolveInfo, @@ -639,7 +639,7 @@ impl<'a> Adapter<'a> for RustdocAdapter<'a> { } fn resolve_property( - &mut self, + &self, contexts: ContextIterator<'a, Self::Vertex>, type_name: &Arc, property_name: &Arc, @@ -697,7 +697,7 @@ impl<'a> Adapter<'a> for RustdocAdapter<'a> { } fn resolve_neighbors( - &mut self, + &self, contexts: ContextIterator<'a, Self::Vertex>, type_name: &Arc, edge_name: &Arc, @@ -1163,7 +1163,7 @@ impl<'a> Adapter<'a> for RustdocAdapter<'a> { } fn resolve_coercion( - &mut self, + &self, contexts: ContextIterator<'a, Self::Vertex>, type_name: &Arc, coerce_to_type: &Arc,