aboutsummaryrefslogtreecommitdiffstats
path: root/src/document_tree/element_categories.rs
diff options
context:
space:
mode:
authorPhilipp A2017-01-26 20:21:39 +0100
committerPhilipp A2017-01-26 20:21:39 +0100
commit6df5d71c64f75a60e8f9ec47b698797ecd11d954 (patch)
treed6eb2cc19fbda62497b0ca36793e76b1c24603f8 /src/document_tree/element_categories.rs
parentb08188e0dc716fae63151e076848a1286b216287 (diff)
downloadrust-rst-6df5d71c64f75a60e8f9ec47b698797ecd11d954.tar.bz2
satisfied clippy
Diffstat (limited to 'src/document_tree/element_categories.rs')
-rw-r--r--src/document_tree/element_categories.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/document_tree/element_categories.rs b/src/document_tree/element_categories.rs
index 85ac340..e3a2425 100644
--- a/src/document_tree/element_categories.rs
+++ b/src/document_tree/element_categories.rs
@@ -25,8 +25,8 @@ macro_rules! synonymous_enum {( $name:ident { $( $entry:ident ),* } ) => (
impl Debug for $name {
fn fmt(&self, fmt: &mut Formatter) -> Result<(), fmt::Error> {
- match self {
- $( &$name::$entry(ref inner) => inner.fmt(fmt), )*
+ match *self {
+ $( $name::$entry(ref inner) => inner.fmt(fmt), )*
}
}
}