Skip to content

Commit

Permalink
Fix formatting and imports
Browse files Browse the repository at this point in the history
  • Loading branch information
marcdejonge committed Jan 3, 2025
1 parent 4b3de68 commit 1610a1a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
use nom::*;
use std::ops::*;
use nom::error::ParseError;

/// #nom-parsable
///
Expand Down Expand Up @@ -83,7 +82,7 @@ macro_rules! signed_parsable {

signed_parsable!(i16 i32 i64 i128);

impl<I, E: ParseError<I>> ParseFrom<I, E> for bool
impl<I, E: error::ParseError<I>> ParseFrom<I, E> for bool
where
// From alt
I: Clone,
Expand All @@ -94,11 +93,12 @@ where
branch::alt((
combinator::value(true, bytes::complete::tag("true")),
combinator::value(false, bytes::complete::tag("false")),
)).parse(input)
))
.parse(input)
}
}

impl<I, E: ParseError<I>, T: ParseFrom<I, E>> ParseFrom<I, E> for Vec<T>
impl<I, E: error::ParseError<I>, T: ParseFrom<I, E>> ParseFrom<I, E> for Vec<T>
where
// From separated_list0
I: Clone + InputLength,
Expand Down

0 comments on commit 1610a1a

Please sign in to comment.