Skip to content

Commit

Permalink
update nom to 7.0 (#88)
Browse files Browse the repository at this point in the history
  • Loading branch information
msrd0 authored Oct 4, 2021
1 parent 2ba9d0a commit 1a46e49
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -18,7 +18,7 @@ libc = "0.2"
serde-feature-hack = { version = "0.2.0", optional = true }

[target.'cfg(any(target_os = "linux", target_os = "android"))'.dependencies]
nom = "6.0"
nom = "7.0"

[target.'cfg(windows)'.dependencies.winapi]
version = "0.3"
2 changes: 1 addition & 1 deletion src/platform/linux.rs
Original file line number Diff line number Diff line change
@@ -183,7 +183,7 @@ fn proc_meminfo(input: &str) -> IResult<&str, BTreeMap<String, ByteSize>> {
.map_err(|_| ())
},
),
BTreeMap::new(),
BTreeMap::new,
|mut map: BTreeMap<String, ByteSize>, opt| {
if let Some((key, val)) = opt {
map.insert(key.to_string(), val);

0 comments on commit 1a46e49

Please sign in to comment.