mirror of
https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs.git
synced 2024-11-22 11:30:59 +00:00
rusoto: Port to nom 6
This commit is contained in:
parent
e3aa368d94
commit
65c9c33f88
2 changed files with 2 additions and 2 deletions
|
@ -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"
|
||||
|
|
|
@ -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,
|
||||
)));
|
||||
|
|
Loading…
Reference in a new issue