Skip to content

Commit 717184b

Browse files
authored
chore: upgrade petgraph from 0.4 to 0.8 (#5592)
Update `petgraph` to the latest major version. This version adds `no_std` support which can help us move in that direction to reduce the WebAssembly binary size.
1 parent 944e9a8 commit 717184b

3 files changed

Lines changed: 33 additions & 37 deletions

File tree

Cargo.lock

Lines changed: 31 additions & 35 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ paste = "1"
113113
percent-encoding = "2"
114114
pest = "2"
115115
pest_derive = "2"
116-
petgraph = "0.4"
116+
petgraph = "0.8"
117117
pin-project = "1"
118118
postgres-native-tls = { git = "https://github.com/prisma/rust-postgres", branch = "pgbouncer-mode" }
119119
postgres-types = { git = "https://github.com/prisma/rust-postgres", branch = "pgbouncer-mode" }

query-engine/core/src/query_graph/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -415,7 +415,7 @@ impl QueryGraph {
415415

416416
/// Checks if the given node is marked as one of the result nodes in the graph.
417417
pub fn is_result_node(&self, node: &NodeRef) -> bool {
418-
self.result_nodes.iter().any(|rn| rn.index() == node.node_ix.index())
418+
self.result_nodes.contains(&node.node_ix)
419419
}
420420

421421
/// Checks if the subgraph starting at the given node contains the node designated as the overall result.

0 commit comments

Comments
 (0)