diff options
| author | Philipp A | 2017-01-26 20:21:39 +0100 | 
|---|---|---|
| committer | Philipp A | 2017-01-26 20:21:39 +0100 | 
| commit | 6df5d71c64f75a60e8f9ec47b698797ecd11d954 (patch) | |
| tree | d6eb2cc19fbda62497b0ca36793e76b1c24603f8 /src | |
| parent | b08188e0dc716fae63151e076848a1286b216287 (diff) | |
| download | rust-rst-6df5d71c64f75a60e8f9ec47b698797ecd11d954.tar.bz2 | |
satisfied clippy
Diffstat (limited to 'src')
| -rw-r--r-- | src/document_tree/element_categories.rs | 4 | ||||
| -rw-r--r-- | src/parser/token.rs | 12 | 
2 files changed, 8 insertions, 8 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), )*  			}  		}  	} diff --git a/src/parser/token.rs b/src/parser/token.rs index 8c3a445..d3b727b 100644 --- a/src/parser/token.rs +++ b/src/parser/token.rs @@ -16,17 +16,17 @@  //http://docutils.sourceforge.net/docs/ref/rst/restructuredtext.html#bullet-lists -enum BulletListType { Ast, Plus, Minus, Bullet, TriBullet, HyphenBullet } -enum EnumListChar { Arabic, AlphaUpper, AlphaLower, RomanUpper, RomanLower, Auto } -enum EnumListType { Period, ParenEnclosed, Paren } -enum AdornmentChar { +pub enum BulletListType { Ast, Plus, Minus, Bullet, TriBullet, HyphenBullet } +pub enum EnumListChar { Arabic, AlphaUpper, AlphaLower, RomanUpper, RomanLower, Auto } +pub enum EnumListType { Period, ParenEnclosed, Paren } +pub enum AdornmentChar {  	Bang, DQuote, Hash, Dollar, Percent, Amp, SQuote, LParen, RParen, Ast, Plus, Comma,  	Minus, Period, Slash, Colon, Semicolon, Less, Eq, More, Question, At, LBrack,  	Backslash, RBrack, Caret, Underscore, Backtick, LBrace, Pipe, RBrace, Tilde,  } -enum FootnoteType { Numbered(usize), AutoNumber, AutoSymbol, AutoNamed(String) } +pub enum FootnoteType { Numbered(usize), AutoNumber, AutoSymbol, AutoNamed(String) } -enum TokenBlockLevel { +pub enum TokenBlockLevel {  	EmptyLine,  	Indent(u8),  // plain indents mean blockquotes  	Dedent(u8), | 
