rust-sysfs-gpio icon indicating copy to clipboard operation
rust-sysfs-gpio copied to clipboard

Add conversion to io::Error

Open scootermon opened this issue 1 year ago • 2 comments

I'm not sure if this repository is still being maintained, but the crate is still very useful when working with older Linux kernels.

This PR adds a simple implementation for mapping this crate's custom error type to std::io::Error. Having this impl is useful when interacting with other functions that return std::io::Result.

scootermon avatar May 01 '24 19:05 scootermon

Hey @scootermon - the CI fixes are merged, so if you can merge or rebase with your changes we can get this merged. Thanks again for your contribution!

nastevens avatar May 10 '24 20:05 nastevens

Thanks, @nastevens. I went ahead and rebased the PR.

scootermon avatar May 11 '24 00:05 scootermon

Thanks again for the contribution @scootermon!

nastevens avatar May 13 '24 15:05 nastevens

sysfs_gpio 0.6.2 published: https://crates.io/crates/sysfs-gpio/0.6.2

nastevens avatar May 13 '24 17:05 nastevens