bevy-inspector-egui
bevy-inspector-egui copied to clipboard
Clippy fails in project with `bevy-inspector-egui` with default features enabled
What I did
This doesn't seem to happen in a bare project. But it may be some sort of interaction with another dependency or bevy feature.
https://github.com/rparrett/typey_birb/blob/v0.6.2/Cargo.toml#L16
cargo clippy --all-features
What happened
error[E0599]: no method named `with_docs` found for struct `type_info::OpaqueInfo` in the current scope
--> /Users/me/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/bevy_reflect-0.16.0/src/impls/glam.rs:501:1
|
501 | impl_reflect_opaque!(::glam::BVec4A(
| _^
502 | | Clone,
503 | | Debug,
504 | | Default,
505 | | Deserialize,
506 | | Serialize
507 | | ));
| |__^ method not found in `OpaqueInfo`
|
::: /Users/me/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/bevy_reflect-0.16.0/src/type_info.rs:552:1
|
552 | pub struct OpaqueInfo {
| --------------------- method `with_docs` not found for this struct
|
= note: this error originates in the macro `impl_reflect_opaque` (in Nightly builds, run with -Z macro-backtrace for more info)
Workaround
Remove the documentation feature.
bevy-inspector-egui = { version = "0.31", optional = true, default-features = false, features = [
"bevy_pbr",
"bevy_image",
"bevy_render",
"bevy_core_pipeline",
"egui_clipboard",
] }
See also https://github.com/bevyengine/bevy/issues/18668#issuecomment-2770360962