From 6d995f698f580aba9e67b847432899ce841e6e7d Mon Sep 17 00:00:00 2001 From: Philipp A Date: Mon, 10 Dec 2018 09:38:31 +0100 Subject: document conversion --- 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 58a1e94..0708080 100644 --- a/src/document_tree/extra_attributes.rs +++ b/src/document_tree/extra_attributes.rs @@ -20,7 +20,7 @@ macro_rules! skip { macro_rules! impl_extra { ( $name:ident { $( $(#[$pattr:meta])* $param:ident : $type:ty ),* $(,)* } ) => ( impl_extra!( - #[derive(Default,Debug,Serialize)] + #[derive(Default,Debug,PartialEq,Serialize)] $name { $( $(#[$pattr])* $param : $type, )* } ); ); @@ -49,7 +49,7 @@ impl_extra!(Target { anonymous: bool, }); impl_extra!(Raw { space: FixedSpace, format: Vec }); -impl_extra!(#[derive(Debug,Serialize)] Image { +impl_extra!(#[derive(Debug,PartialEq,Serialize)] Image { uri: target::Target, align: Option, alt: Option, -- cgit v1.2.3