-
Notifications
You must be signed in to change notification settings - Fork 12.2k
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
Fix some clippy lints for library/std/src/sys/windows #118154
Merged
Merged
Commits on Nov 22, 2023
-
allow clippy style in windows/c.rs
We intentional use the Windows API style here.
Configuration menu - View commit details
-
Copy full SHA for ad12be3 - Browse repository at this point
Copy the full SHA ad12be3View commit details -
Configuration menu - View commit details
-
Copy full SHA for 533de2b - Browse repository at this point
Copy the full SHA 533de2bView commit details -
Configuration menu - View commit details
-
Copy full SHA for 6c22e57 - Browse repository at this point
Copy the full SHA 6c22e57View commit details -
This is where our Windows API bindings previously (and incorrectly) used `*mut` instead of `*const` pointers. Now that the bindings have been corrected, the mutable references (which auto-convert to `*mut`) are unnecessary and we can use shared references.
Configuration menu - View commit details
-
Copy full SHA for bfbeb3e - Browse repository at this point
Copy the full SHA bfbeb3eView commit details -
Configuration menu - View commit details
-
Copy full SHA for fe25569 - Browse repository at this point
Copy the full SHA fe25569View commit details -
needless_borrows_for_generic_args
the borrowed expression implements the required traits
Configuration menu - View commit details
-
Copy full SHA for 4273459 - Browse repository at this point
Copy the full SHA 4273459View commit details -
this expression creates a reference which is immediately dereferenced by the compiler
Configuration menu - View commit details
-
Copy full SHA for 2454263 - Browse repository at this point
Copy the full SHA 2454263View commit details -
Configuration menu - View commit details
-
Copy full SHA for 9e42456 - Browse repository at this point
Copy the full SHA 9e42456View commit details -
calling `subsec_micros()` is more concise than this calculation
Configuration menu - View commit details
-
Copy full SHA for b962ae1 - Browse repository at this point
Copy the full SHA b962ae1View commit details -
Configuration menu - View commit details
-
Copy full SHA for 220217a - Browse repository at this point
Copy the full SHA 220217aView commit details -
unnecessary closure used with `bool::then`
Configuration menu - View commit details
-
Copy full SHA for 8c85c5b - Browse repository at this point
Copy the full SHA 8c85c5bView commit details -
Configuration menu - View commit details
-
Copy full SHA for 4c084c5 - Browse repository at this point
Copy the full SHA 4c084c5View commit details -
Configuration menu - View commit details
-
Copy full SHA for d7e1f1c - Browse repository at this point
Copy the full SHA d7e1f1cView commit details -
Configuration menu - View commit details
-
Copy full SHA for c15adf6 - Browse repository at this point
Copy the full SHA c15adf6View commit details -
comparing with null is better expressed by the `.is_null()` method
Configuration menu - View commit details
-
Copy full SHA for 852c038 - Browse repository at this point
Copy the full SHA 852c038View commit details -
Configuration menu - View commit details
-
Copy full SHA for 6c8ebf1 - Browse repository at this point
Copy the full SHA 6c8ebf1View commit details -
Configuration menu - View commit details
-
Copy full SHA for b9fe367 - Browse repository at this point
Copy the full SHA b9fe367View commit details
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.