valpackett / systemstat

Rust library for getting system information | also on https://codeberg.org/valpackett/systemstat
https://crates.io/crates/systemstat
The Unlicense
610 stars 71 forks source link

Fix an issue where proc_mounts would skip the first line #77

Closed shssoichiro closed 3 years ago

shssoichiro commented 3 years ago

Also add unit tests around this method to catch this and a couple of other gotchas in parsing this file.

Added another commit to avoid the use of flat_map entirely. That parser seems to behave differently in nom 6 than it did in nom 3, and my concern was that it may cause issues (not yet discovered) in other places where it was used.