aboutsummaryrefslogtreecommitdiffstats
path: root/src/document_tree/extra_attributes.rs
diff options
context:
space:
mode:
authorAndreu Botella2019-09-05 09:46:38 +0200
committerPhilipp A2019-09-05 09:46:38 +0200
commit7d38186a0ae3222b6de9bc91290a87d0e4564e18 (patch)
tree02b29e7f49edb2fc6b7770136a361a68654cd45f /src/document_tree/extra_attributes.rs
parentf058136d455e42171fd0327ef09c565ad0648197 (diff)
downloadrust-rst-7d38186a0ae3222b6de9bc91290a87d0e4564e18.tar.bz2
Make elements clonable. (#8)
Diffstat (limited to 'src/document_tree/extra_attributes.rs')
-rw-r--r--src/document_tree/extra_attributes.rs4
1 files changed, 2 insertions, 2 deletions
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<A> {
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<NameToken> });
-impl_extra!(#[derive(Debug,PartialEq,Serialize)] Image {
+impl_extra!(#[derive(Debug,PartialEq,Serialize,Clone)] Image {
uri: target::Target,
align: Option<AlignHV>,
alt: Option<String>,