From 45df63e31cc0d7f8c79e7d39b28a4a30dd07bf3f Mon Sep 17 00:00:00 2001 From: Noname-Official <106477298+Noname-Official@users.noreply.github.com> Date: Sat, 6 Jul 2024 14:56:47 +0200 Subject: [PATCH 1/2] Select is not a fused iterator --- src/element_ref/mod.rs | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/element_ref/mod.rs b/src/element_ref/mod.rs index 5461041f..6df7ad73 100644 --- a/src/element_ref/mod.rs +++ b/src/element_ref/mod.rs @@ -175,8 +175,6 @@ impl<'a, 'b> Iterator for Select<'a, 'b> { } } -impl FusedIterator for Select<'_, '_> {} - /// Iterator over descendent text nodes. #[derive(Debug, Clone)] pub struct Text<'a> { From 3b8383dcc571dc59d1b5963fb4eaac056f3a1963 Mon Sep 17 00:00:00 2001 From: Noname-Official <106477298+Noname-Official@users.noreply.github.com> Date: Sat, 6 Jul 2024 15:07:51 +0200 Subject: [PATCH 2/2] Text isn't a fused iterator --- src/element_ref/mod.rs | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/element_ref/mod.rs b/src/element_ref/mod.rs index 6df7ad73..7357f620 100644 --- a/src/element_ref/mod.rs +++ b/src/element_ref/mod.rs @@ -1,7 +1,6 @@ //! Element references. use std::fmt; -use std::iter::FusedIterator; use std::ops::Deref; use ego_tree::iter::{Edge, Traverse}; @@ -196,8 +195,6 @@ impl<'a> Iterator for Text<'a> { } } -impl FusedIterator for Text<'_> {} - mod element; mod serializable;