mirror of
https://github.com/bevyengine/bevy
synced 2024-11-22 04:33:37 +00:00
173db7726f
# Objective - When building for release, there are "unused" warnings: ``` warning: unused import: `bevy_utils::warn_once` --> crates/bevy_pbr/src/render/mesh_view_bindings.rs:32:5 | 32 | use bevy_utils::warn_once; | ^^^^^^^^^^^^^^^^^^^^^ | = note: `#[warn(unused_imports)]` on by default warning: unused variable: `texture_count` --> crates/bevy_pbr/src/render/mesh_view_bindings.rs:371:17 | 371 | let texture_count: usize = entries | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_texture_count` | = note: `#[warn(unused_variables)]` on by default ``` ## Solution - Gate the import and definition by the same cfg as their uses |
||
---|---|---|
.. | ||
src | ||
Cargo.toml | ||
README.md |