-
Notifications
You must be signed in to change notification settings - Fork 162
Clippy warning clippy::manual_strip in 2.0.0-rc.2 #300
Copy link
Copy link
Closed
Description
As the title says, in 2.0.0-rc.2 cargo clippy emits a warning about a prefix being stripped manually in the macro's generated code.
warning: stripping a prefix manually
--> stitchkit-reflection-types\src\property.rs:18:1
|
18 | / bitflags! {
19 | | #[derive(Debug, Clone, Copy, PartialEq, Eq)]
20 | | pub struct PropertyFlags: u64 {
21 | | const OPTIONAL_PARAM = 0x0000000000000010;
... |
24 | | }
25 | | }
| |_^
|
note: the prefix was tested here
--> stitchkit-reflection-types\src\property.rs:18:1
|
18 | / bitflags! {
19 | | #[derive(Debug, Clone, Copy, PartialEq, Eq)]
20 | | pub struct PropertyFlags: u64 {
21 | | const OPTIONAL_PARAM = 0x0000000000000010;
... |
24 | | }
25 | | }
| |_^
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_strip
= note: `#[warn(clippy::manual_strip)]` on by default
= note: this warning originates in the macro `__impl_internal_bitflags` which comes from the expansion of the macro `bitflags` (in Nightly builds, run with -Z macro-backtrace for more info)
Tested on latest stable - 1.67.1.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels