-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
egui-winit: Use RawDisplayHandle for smithay clipboard init #2914
Conversation
crates/egui-winit/src/clipboard.rs
Outdated
/// The returned `Clipboard` must not outlive the input `_event_loop`. | ||
pub fn new<T>(_event_loop: &EventLoopWindowTarget<T>) -> Self { | ||
pub fn new(_display_target: impl HasRawDisplayHandle) -> Self { |
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.
Doc comment should be updated to refer to the new parameter name
crates/egui-winit/src/lib.rs
Outdated
/// The returned `State` must not outlive the input `_event_loop`. | ||
pub fn new<T>(event_loop: &EventLoopWindowTarget<T>) -> Self { | ||
pub fn new(display_target: impl HasRawDisplayHandle) -> Self { |
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.
And here
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.
Looks good, but need cargo clippy
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.
Looks good, but need cargo clippy
addressed the inline comments |
tip: configure your editor to run |
thanks! |
I believe this addresses #2912