-
-
Notifications
You must be signed in to change notification settings - Fork 14.4k
Lint unused parentheses around method receiver #151986
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
base: main
Are you sure you want to change the base?
Lint unused parentheses around method receiver #151986
Conversation
|
cc @tgross35 |
|
c1b3bf0 to
c6acedc
Compare
| }, | ||
| alloc, | ||
| )); | ||
| let uninit_ptr: NonNull<_> = (unsafe { &mut *uninit_raw_ptr }).into(); |
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.
seems better add parens for unsafe block?
This comment has been minimized.
This comment has been minimized.
c6acedc to
89085e5
Compare
This comment has been minimized.
This comment has been minimized.
926cf7d to
dc54301
Compare
This comment has been minimized.
This comment has been minimized.
dc54301 to
5733cfa
Compare
This comment has been minimized.
This comment has been minimized.
5733cfa to
39cd80f
Compare
This comment has been minimized.
This comment has been minimized.
39cd80f to
823f304
Compare
This comment has been minimized.
This comment has been minimized.
823f304 to
4a5a8e7
Compare
This comment has been minimized.
This comment has been minimized.
4a5a8e7 to
d657d00
Compare
This comment has been minimized.
This comment has been minimized.
d657d00 to
d18d47c
Compare
|
The job Click to see the possible cause of the failure (guessed by this bot) |
Extends the
unused_parenslint to detect unnecessary parentheses around method receivers like(x).method().Fixes #151985