rusoto: Port to nom 6

This commit is contained in:
Sebastian Dröge 2021-01-09 12:16:31 +02:00
parent e3aa368d94
commit 65c9c33f88
2 changed files with 2 additions and 2 deletions

View file

@ -23,7 +23,7 @@ url = "2"
percent-encoding = "2" percent-encoding = "2"
tokio = { version = "1.0", features = [ "rt-multi-thread" ] } tokio = { version = "1.0", features = [ "rt-multi-thread" ] }
async-tungstenite = { version = "0.12", features = ["tokio", "tokio-runtime", "tokio-native-tls"] } async-tungstenite = { version = "0.12", features = ["tokio", "tokio-runtime", "tokio-native-tls"] }
nom = "5.1.1" nom = "6"
crc = "1.8.1" crc = "1.8.1"
byteorder = "1.3.4" byteorder = "1.3.4"
once_cell = "1.0" once_cell = "1.0"

View file

@ -152,7 +152,7 @@ pub fn parse_packet(input: &[u8]) -> IResult<&[u8], Packet> {
let (_, msg_crc) = be_u32(&input[input.len() - 4..])?; let (_, msg_crc) = be_u32(&input[input.len() - 4..])?;
if msg_crc != sum { if msg_crc != sum {
return Err(nom::Err::Error(( return Err(nom::Err::Error(nom::error::Error::new(
b"Prelude CRC doesn't match", b"Prelude CRC doesn't match",
nom::error::ErrorKind::MapRes, nom::error::ErrorKind::MapRes,
))); )));