-
Notifications
You must be signed in to change notification settings - Fork 920
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
Clippy fixes #2011
Clippy fixes #2011
Conversation
use now available winapi structures
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.
Nice 🎉!
Can you also fix the two normal check
warnings with file_drop_handler
and broken_intra_doc_links
? They can be seen at the bottom of this page.
a19fc33
to
7b36070
Compare
@@ -938,7 +938,7 @@ unsafe fn public_window_callback_inner<T: 'static>( | |||
winuser::MonitorFromRect(&new_rect, winuser::MONITOR_DEFAULTTONULL); | |||
match fullscreen { | |||
Fullscreen::Borderless(ref mut fullscreen_monitor) => { | |||
if new_monitor != ptr::null_mut() | |||
if new_monitor.is_null() |
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.
this inverts the logic
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.
Good catch !
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.
Other than what msiglreith pointed out, this looks good to me.
the prefix was introduced in Rust 1.52
and a bit of naming simplification
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.
thanks, I guess we had enough eyes on this to merge it in!
cargo fmt
has been run on this branchcargo doc
builds successfullyCHANGELOG.md
if knowledge of this change could be valuable to users