-
Notifications
You must be signed in to change notification settings - Fork 123
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
Use BorrowedFd
in arguments
#640
Conversation
Hm, an awkward API stability concern here: adding That is needed because an enum can't have a type generic unless a variant uses that type parameter. Maybe if it's non-exhaustive anyway, it could have a variant that's never constructed with a |
Currently |
ca803a4
to
3955b21
Compare
Codecov ReportPatch coverage:
Additional details and impacted files@@ Coverage Diff @@
## master #640 +/- ##
==========================================
+ Coverage 73.11% 73.15% +0.03%
==========================================
Files 47 47
Lines 7693 7729 +36
==========================================
+ Hits 5625 5654 +29
- Misses 2068 2075 +7
Flags with carried forward coverage won't be shown. Click here to find out more.
☔ View full report in Codecov by Sentry. |
3c6a66f
to
ce21e9b
Compare
Added generation of a This should be good now. |
Implementation of Smithay#592. This is required for IO safety. Or perhaps `AsFd` generics would be useful. This will be a breaking API change, and require Rust 1.65.
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.
That's a solid PR, thanks!
Implementation of #592.
This is required for IO safety. Or perhaps
AsFd
generics would be useful.This will be a breaking API change, and require Rust 1.65.
Currently
wayland-client
compiles here, but server-side needs the same changes, and things need to be cleaned up a bit.