From 500a6cdaf160ff4d4077657e686848fa4a30abc4 Mon Sep 17 00:00:00 2001 From: bakaq Date: Thu, 12 Dec 2024 05:49:52 -0300 Subject: [PATCH] FIXME in Drop for QueryState --- src/machine/lib_machine/mod.rs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/machine/lib_machine/mod.rs b/src/machine/lib_machine/mod.rs index 170fa2c9..13a39fcb 100644 --- a/src/machine/lib_machine/mod.rs +++ b/src/machine/lib_machine/mod.rs @@ -414,8 +414,8 @@ pub struct QueryState<'a> { impl Drop for QueryState<'_> { fn drop(&mut self) { - // This may be wrong if the iterator is not fully consumend, but from testing it seems - // fine. + // FIXME: This may be wrong if the iterator is not fully consumend, but from testing it + // seems fine. Is this really ok? self.machine.trust_me(); } } @@ -523,7 +523,6 @@ impl Iterator for QueryState<'_> { Some(Ok(LeafAnswer::LeafAnswer { bindings, - residual_goals: vec![], })) } } -- 2.54.0