Skip to content

Commit

Permalink
Add missing derive Clone to Choice and AndThen
Browse files Browse the repository at this point in the history
  • Loading branch information
Marwes committed Jul 27, 2015
1 parent 664d8b9 commit 3a0cf4b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/combinator.rs
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,7 @@ pub fn token<I>(c: I::Item) -> Token<I>
Token { c: c, _marker: PhantomData }
}

#[derive(Clone)]
pub struct Choice<S, P>(S, PhantomData<P>);

impl <I, O, S, P> Parser for Choice<S, P>
Expand Down Expand Up @@ -940,6 +941,7 @@ impl <P> Parser for Expected<P>
}
}

#[derive(Clone)]
pub struct AndThen<P, F>(P, F);
impl <P, F, O, E> Parser for AndThen<P, F>
where P: Parser
Expand Down

0 comments on commit 3a0cf4b

Please sign in to comment.