aboutsummaryrefslogtreecommitdiffstats
path: root/src/document_tree/elements.rs
diff options
context:
space:
mode:
authorPhilipp A2018-12-28 16:49:11 +0100
committerPhilipp A2018-12-28 16:49:11 +0100
commitd019d0bff16e7277533a89399a57f290439bc2f5 (patch)
tree981b3b4a27e0d5000b8542a0b30a8b10f143b055 /src/document_tree/elements.rs
parent9d65f49e6d5eda4050e4791994a99089c446b410 (diff)
downloadrust-rst-d019d0bff16e7277533a89399a57f290439bc2f5.tar.bz2
Fix warnings
Diffstat (limited to 'src/document_tree/elements.rs')
-rw-r--r--src/document_tree/elements.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/document_tree/elements.rs b/src/document_tree/elements.rs
index e1f0245..72f10e8 100644
--- a/src/document_tree/elements.rs
+++ b/src/document_tree/elements.rs
@@ -54,6 +54,7 @@ macro_rules! impl_element { ($name:ident) => (
macro_rules! impl_children { ($name:ident, $childtype:ident) => (
impl HasChildren<$childtype> for $name {
+ #[allow(clippy::needless_update)]
fn with_children(children: Vec<$childtype>) -> $name { $name { children: children, ..Default::default() } }
fn children (& self) -> & Vec<$childtype> { & self.children }
fn children_mut(&mut self) -> &mut Vec<$childtype> { &mut self.children }
@@ -62,6 +63,7 @@ macro_rules! impl_children { ($name:ident, $childtype:ident) => (
macro_rules! impl_extra { ($name:ident $($more:tt)*) => (
impl ExtraAttributes<extra_attributes::$name> for $name {
+ #[allow(clippy::needless_update)]
fn with_extra(extra: extra_attributes::$name) -> $name { $name { common: Default::default(), extra: extra $($more)* } }
fn extra (& self) -> & extra_attributes::$name { & self.extra }
fn extra_mut(&mut self) -> &mut extra_attributes::$name { &mut self.extra }