eminence / procfs

Rust library for reading the Linux procfs filesystem
Other
358 stars 105 forks source link

Fix readme example #269

Closed popsu closed 1 year ago

popsu commented 1 year ago

Tried to run the example and it had a small error. procfs::page_size returns a u64, not a Result: https://github.com/eminence/procfs/blob/a869cc7e3971dabf3da3d37d1702df62be392513/procfs/src/lib.rs#L341

eminence commented 1 year ago

This is another thing I broke in #235

Thanks for the fix!