Skip to content
This repository was archived by the owner on Apr 4, 2023. It is now read-only.

Commit 2c47500

Browse files
committed
fix two nightly errors
1 parent 406ee31 commit 2c47500

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

filter-parser/src/error.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ impl<E> NomErrorExt<E> for nom::Err<E> {
3333

3434
/// cut a parser and map the error
3535
pub fn cut_with_err<'a, O>(
36-
mut parser: impl FnMut(Span<'a>) -> IResult<O>,
36+
mut parser: impl FnMut(Span<'a>) -> IResult<'a, O>,
3737
mut with: impl FnMut(Error<'a>) -> Error<'a>,
3838
) -> impl FnMut(Span<'a>) -> IResult<O> {
3939
move |input| match parser.parse(input) {

filter-parser/src/lib.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,9 @@ impl<'a> FilterCondition<'a> {
170170
}
171171

172172
/// remove OPTIONAL whitespaces before AND after the provided parser.
173-
fn ws<'a, O>(inner: impl FnMut(Span<'a>) -> IResult<O>) -> impl FnMut(Span<'a>) -> IResult<O> {
173+
fn ws<'a, O>(
174+
inner: impl FnMut(Span<'a>) -> IResult<'a, O>,
175+
) -> impl FnMut(Span<'a>) -> IResult<'a, O> {
174176
delimited(multispace0, inner, multispace0)
175177
}
176178

0 commit comments

Comments
 (0)