FIXME in Drop for QueryState

This commit is contained in:
bakaq
2024-12-12 05:49:52 -03:00
parent 17293a5753
commit 500a6cdaf1

View File

@@ -414,8 +414,8 @@ pub struct QueryState<'a> {
impl Drop for QueryState<'_> { impl Drop for QueryState<'_> {
fn drop(&mut self) { fn drop(&mut self) {
// This may be wrong if the iterator is not fully consumend, but from testing it seems // FIXME: This may be wrong if the iterator is not fully consumend, but from testing it
// fine. // seems fine. Is this really ok?
self.machine.trust_me(); self.machine.trust_me();
} }
} }
@@ -523,7 +523,6 @@ impl Iterator for QueryState<'_> {
Some(Ok(LeafAnswer::LeafAnswer { Some(Ok(LeafAnswer::LeafAnswer {
bindings, bindings,
residual_goals: vec![],
})) }))
} }
} }