-
-
Notifications
You must be signed in to change notification settings - Fork 3.9k
bevy_reflect: Apply #![deny(clippy::allow_attributes, clippy::allow_attributes_without_reason)]
#17092
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
bevy_reflect: Apply #![deny(clippy::allow_attributes, clippy::allow_attributes_without_reason)]
#17092
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -199,7 +199,7 @@ mod tests { | |
|
||
#[reflect_trait] | ||
trait Enemy: Reflect + Debug { | ||
#[allow(dead_code, reason = "this method is purely for testing purposes")] | ||
#[expect(dead_code, reason = "this method is purely for testing purposes")] | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This method may become used during said testing, and it would be annoying if this generated a warning during testing. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think I prefer leaving this as an expect for now. |
||
fn hp(&self) -> u8; | ||
} | ||
|
||
|
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.
I don't understand the parenthesis 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.
Yeah, I'd like to clean this up before merging. @MrGVSV, what did you mean 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.
This actually wasn't me. Looks like it was added in #14828. My guess is that since
Option
andResult
are in the prelude, their full qualification is unnecessary, but we rely on it for generating theTypePath
impl withinimpl_reflect!
.