From: bakaq Date: Thu, 12 Dec 2024 08:49:52 +0000 (-0300) Subject: FIXME in Drop for QueryState X-Git-Tag: v0.10.0~92^2~2 X-Git-Url: https://git.sagredo.dev/?a=commitdiff_plain;h=500a6cdaf160ff4d4077657e686848fa4a30abc4;p=scryer-prolog.git FIXME in Drop for QueryState --- 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![], })) } }