-
Notifications
You must be signed in to change notification settings - Fork 37
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
slot-ctrl: remove two lines of unsafe #246
slot-ctrl: remove two lines of unsafe #246
Conversation
1d178e0
to
8bb323d
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is it really worth it? 🤔
it delegates the unsafe code to a third party crate but should we trust libc or rustix more?
Using |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! Did you test it on an orb?
Yes, long term I want to try to use rustix as much as possible. I will eventually rewrite the Ioctl stuff using it. It provides good tools for Ioctl calls. See for example my PR to nusb: kevinmehall/nusb#65 |
No, because the thing is the same function. But I can do that before merging. |
@TheButlah let's resolve the conflicts and merge |
8bb323d
to
0953145
Compare
No description provided.