Skip to content

Commit

Permalink
Fix lifetime parameter of Neg and Not
Browse files Browse the repository at this point in the history
  • Loading branch information
J-F-Liu committed Mar 29, 2019
1 parent 5e76e74 commit 79b306a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/parser.rs
Original file line number Diff line number Diff line change
Expand Up @@ -537,7 +537,7 @@ impl<'a, I, O: 'a> BitOr for Parser<'a, I, O> {
}

/// And predicate
impl<'a, I: Copy + 'static, O: 'static> Neg for Parser<'a, I, O> {
impl<'a, I: Copy + 'static, O: 'a> Neg for Parser<'a, I, O> {
type Output = Parser<'a, I, bool>;

fn neg(self) -> Self::Output {
Expand All @@ -548,7 +548,7 @@ impl<'a, I: Copy + 'static, O: 'static> Neg for Parser<'a, I, O> {
}

/// Not predicate
impl<'a, I: Copy, O: 'static> Not for Parser<'a, I, O> {
impl<'a, I: Copy, O: 'a> Not for Parser<'a, I, O> {
type Output = Parser<'a, I, bool>;

fn not(self) -> Self::Output {
Expand Down

0 comments on commit 79b306a

Please sign in to comment.