Skip to content

Commit

Permalink
Removed useless derives
Browse files Browse the repository at this point in the history
  • Loading branch information
Sascha Grunert authored and Sascha Grunert committed Jan 8, 2017
1 parent 674d6cc commit aab409c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/example/parser1.rs
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
//! Example parser 1
use example::prelude::*;

#[derive(Debug, Clone)]
/// The first example parser
pub struct Parser1;

#[derive(Debug, Clone, PartialEq)]
#[derive(Debug, PartialEq)]
/// The result of the first example parser
pub struct Parser1Result;

Expand All @@ -16,6 +15,7 @@ impl Parser<()> for Parser1 {
_: Option<&ParserResultVec>,
_: Option<&mut ()>)
-> IResult<&'a [u8], ParserResult> {

do_parse!(input, tag!("1") >> (Box::new(Parser1Result)))
}
}
Expand Down

0 comments on commit aab409c

Please sign in to comment.