From 7d38186a0ae3222b6de9bc91290a87d0e4564e18 Mon Sep 17 00:00:00 2001 From: Andreu Botella Date: Thu, 5 Sep 2019 09:46:38 +0200 Subject: Make elements clonable. (#8) --- src/document_tree/extra_attributes.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/document_tree/extra_attributes.rs') diff --git a/src/document_tree/extra_attributes.rs b/src/document_tree/extra_attributes.rs index bff9fb3..e72b288 100644 --- a/src/document_tree/extra_attributes.rs +++ b/src/document_tree/extra_attributes.rs @@ -12,7 +12,7 @@ pub trait ExtraAttributes { macro_rules! impl_extra { ( $name:ident { $( $(#[$pattr:meta])* $param:ident : $type:ty ),* $(,)* } ) => ( impl_extra!( - #[derive(Default,Debug,PartialEq,Serialize)] + #[derive(Default,Debug,PartialEq,Serialize,Clone)] $name { $( $(#[$pattr])* $param : $type, )* } ); ); @@ -41,7 +41,7 @@ impl_extra!(Target { anonymous: bool, }); impl_extra!(Raw { space: FixedSpace, format: Vec }); -impl_extra!(#[derive(Debug,PartialEq,Serialize)] Image { +impl_extra!(#[derive(Debug,PartialEq,Serialize,Clone)] Image { uri: target::Target, align: Option, alt: Option, -- cgit v1.2.3