From 65c9c33f88eadb2ed33ea6c8af1d42a5595a4aaa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Sat, 9 Jan 2021 12:16:31 +0200 Subject: [PATCH] rusoto: Port to nom 6 --- net/rusoto/Cargo.toml | 2 +- net/rusoto/src/aws_transcriber/packet/mod.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/net/rusoto/Cargo.toml b/net/rusoto/Cargo.toml index 760e8033..4e0c6bff 100644 --- a/net/rusoto/Cargo.toml +++ b/net/rusoto/Cargo.toml @@ -23,7 +23,7 @@ url = "2" percent-encoding = "2" tokio = { version = "1.0", features = [ "rt-multi-thread" ] } async-tungstenite = { version = "0.12", features = ["tokio", "tokio-runtime", "tokio-native-tls"] } -nom = "5.1.1" +nom = "6" crc = "1.8.1" byteorder = "1.3.4" once_cell = "1.0" diff --git a/net/rusoto/src/aws_transcriber/packet/mod.rs b/net/rusoto/src/aws_transcriber/packet/mod.rs index 18281617..01581f41 100644 --- a/net/rusoto/src/aws_transcriber/packet/mod.rs +++ b/net/rusoto/src/aws_transcriber/packet/mod.rs @@ -152,7 +152,7 @@ pub fn parse_packet(input: &[u8]) -> IResult<&[u8], Packet> { let (_, msg_crc) = be_u32(&input[input.len() - 4..])?; if msg_crc != sum { - return Err(nom::Err::Error(( + return Err(nom::Err::Error(nom::error::Error::new( b"Prelude CRC doesn't match", nom::error::ErrorKind::MapRes, )));