From 49341e47d4b6d8a1391b4ea9db237956b5f7b9aa Mon Sep 17 00:00:00 2001 From: Hernawan Fa'iz Abdillah Date: Wed, 19 May 2021 10:52:53 +0700 Subject: [PATCH] Change iterator from returning tuple --- src/python.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/python.rs b/src/python.rs index e0888d4..6479650 100644 --- a/src/python.rs +++ b/src/python.rs @@ -104,9 +104,9 @@ struct NodeQueryIter { #[pyproto] impl PyIterProtocol for NodeQueryIter { - fn __next__(mut slf: PyRefMut) -> IterNextOutput<(i64, Node), &str> { + fn __next__(mut slf: PyRefMut) -> IterNextOutput { if let Some(result) = slf.inner.next() { - IterNextOutput::Yield((result.0, result.1.into())) + IterNextOutput::Yield(result.1.into()) } else { IterNextOutput::Return("Exhausted") }