Browse Source

Update the nom dependency

pull/54/head
Rodolphe Bréard 3 years ago
parent
commit
fdd2d4fe8d
  1. 2
      acmed/Cargo.toml
  2. 2
      acmed/src/duration.rs

2
acmed/Cargo.toml

@ -26,7 +26,7 @@ bincode = "1.3"
clap = "2.32"
glob = "0.3"
log = "0.4"
nom = { version = "6.0", default-features = false, features = [] }
nom = { version = "7.0", default-features = false, features = [] }
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"
tinytemplate = "1.2"

2
acmed/src/duration.rs

@ -32,7 +32,7 @@ fn get_duration_part(input: &str) -> IResult<&str, Duration> {
fn get_duration(input: &str) -> IResult<&str, Duration> {
fold_many1(
get_duration_part,
Duration::new(0, 0),
|| Duration::new(0, 0),
|mut acc: Duration, item| {
acc += item;
acc

Loading…
Cancel
Save