Skip to content

Commit

Permalink
Fix resolve_with() API and release v0.7.1 after yanking 0.7. (#516)
Browse files Browse the repository at this point in the history
  • Loading branch information
obi1kenobi authored Nov 17, 2023
1 parent 521a64f commit 6114244
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 7 deletions.
4 changes: 2 additions & 2 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions trustfall/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "trustfall"
version = "0.7.0"
version = "0.7.1"
license = "Apache-2.0"
description = "The trustfall query engine, empowering you to query everything."
repository = "https://github.com/obi1kenobi/trustfall"
Expand All @@ -16,7 +16,7 @@ rustdoc-args = ["--cfg", "docsrs"]

[dependencies]
anyhow = { workspace = true }
trustfall_core = { version = "=0.7.0", path = "../trustfall_core" }
trustfall_core = { version = "=0.7.1", path = "../trustfall_core" }
trustfall_derive = { version = "=0.3.1", path = "../trustfall_derive" }

[dev-dependencies] # including examples dependencies
Expand Down
2 changes: 1 addition & 1 deletion trustfall_core/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "trustfall_core"
version = "0.7.0"
version = "0.7.1"
license = "Apache-2.0"
description = "The trustfall query engine, empowering you to query everything."
repository = "https://github.com/obi1kenobi/trustfall"
Expand Down
7 changes: 5 additions & 2 deletions trustfall_core/src/interpreter/hints/dynamic.rs
Original file line number Diff line number Diff line change
Expand Up @@ -238,11 +238,14 @@ impl<'a> DynamicallyResolvedValue<'a> {
self,
adapter: &AdapterT,
contexts: ContextIterator<'vertex, V>,
mut neighbor_resolver: impl FnMut(&V, CandidateValue<FieldValue>) -> VertexIterator<'vertex, AdapterT::Vertex>
mut neighbor_resolver: impl FnMut(
&AdapterT::Vertex,
CandidateValue<FieldValue>,
) -> VertexIterator<'vertex, AdapterT::Vertex>
+ 'vertex,
) -> ContextOutcomeIterator<'vertex, V, VertexIterator<'vertex, AdapterT::Vertex>> {
Box::new(self.resolve(adapter, contexts).map(move |(ctx, candidate)| {
let neighbors = match ctx.active_vertex.as_ref() {
let neighbors = match ctx.active_vertex.as_ref().and_then(AsVertex::as_vertex) {
Some(vertex) => neighbor_resolver(vertex, candidate),
None => Box::new(std::iter::empty()),
};
Expand Down

0 comments on commit 6114244

Please sign in to comment.