Skip to content

Commit 21cf38a

Browse files
author
Markus Westerlind
committed
combine 4
1 parent 6fa700d commit 21cf38a

File tree

3 files changed

+10
-34
lines changed

3 files changed

+10
-34
lines changed

Cargo.lock

Lines changed: 6 additions & 30 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,5 @@ edition = "2018"
77
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
88

99
[dependencies]
10-
combine = "3"
10+
combine = "4"
1111
either = "1"

src/main.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@ use combine::parser::byte::hex_digit;
55
use combine::{choice, token};
66
use combine::{ParseError, Parser, RangeStream};
77

8-
fn mcc_payload_item<'a, I: 'a>() -> impl Parser<Input = I, Output = Either<u8, &'static [u8]>>
8+
fn mcc_payload_item<'a, I: 'a>() -> impl Parser<I, Output = Either<u8, &'static [u8]>>
99
where
10-
I: RangeStream<Item = u8, Range = &'a [u8]>,
11-
I::Error: ParseError<I::Item, I::Range, I::Position>,
10+
I: RangeStream<Token = u8, Range = &'a [u8]>,
11+
I::Error: ParseError<I::Token, I::Range, I::Position>,
1212
{
1313
choice!(
1414
token(b'G').map(|_| Either::Right([0xfau8, 0x00, 0x00].as_ref())),

0 commit comments

Comments
 (0)