bump versions of blake3, nom, tokio-tungstenite

This commit is contained in:
Scott Lamb
2021-08-31 13:04:26 -07:00
parent 806d7b6d20
commit d53450dd3b
5 changed files with 67 additions and 69 deletions

View File

@@ -18,7 +18,7 @@ lazy_static = "1.0"
libc = "0.2"
log = "0.4"
parking_lot = { version = "0.11.1", features = [] }
nom = "6.0.0"
nom = "7.0.0"
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"
time = "0.1"

View File

@@ -53,9 +53,11 @@ fn decode_sizepart(input: &str) -> IResult<&str, i64> {
}
fn decode_size_internal(input: &str) -> IResult<&str, i64> {
nom::multi::fold_many1(delimited(space0, decode_sizepart, space0), 0, |sum, i| {
sum + i
})(input)
nom::multi::fold_many1(
delimited(space0, decode_sizepart, space0),
|| 0,
|sum, i| sum + i,
)(input)
}
/// Decodes a human-readable size as output by encode_size.