diff --git a/src/lib.rs b/src/lib.rs index 0810d4b..f0df8f8 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -358,7 +358,6 @@ const _: () = { } } - #[derive(Clone)] pub struct Iter { node: Option<&'static Node>, marker: PhantomData, @@ -376,6 +375,15 @@ const _: () = { } } } + + impl Clone for Iter { + fn clone(&self) -> Self { + Self { + node: self.node, + marker: PhantomData, + } + } + } }; /// Associate a plugin registry with the specified type.