We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 30fd2b6 commit ea1afe0Copy full SHA for ea1afe0
hugr-persistent/src/walker.rs
@@ -451,8 +451,7 @@ impl<R: Resolver> Walker<'_, R> {
451
// Check walker equality by comparing pointers to the state space and
452
// other fields. Only for testing purposes.
453
fn ptr_eq(&self, other: &Self) -> bool {
454
- self.state_space.as_ref() as *const CommitStateSpace<R>
455
- == other.state_space.as_ref() as *const CommitStateSpace<R>
+ std::ptr::eq(self.state_space.as_ref(), other.state_space.as_ref())
456
&& self.pinned_nodes == other.pinned_nodes
457
&& BTreeSet::from_iter(self.selected_commits.all_commit_ids())
458
== BTreeSet::from_iter(other.selected_commits.all_commit_ids())
0 commit comments