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

Update nom to 7.0 #88

Closed msrd0 closed 2 years ago

valpackett commented 2 years ago

Thanks!

That's an interesting diff, why does it take the constructor function itself now?

msrd0 commented 2 years ago

The signature of fold_many0 was changed to take a function that returns the initial value, instead of taking the initial value directly. So we could write || BTreeMap::new(), which is equivalent to BTreeMap::new. I don't exactly know why they changed that, but I assume there is a case in which that function doesn't get called.