bevy icon indicating copy to clipboard operation
bevy copied to clipboard

`unused_variables` warning when building with `filesystem_watcher` feature disabled

Open sarkahn opened this issue 2 years ago • 2 comments

Objective

Fix unused_variables warning produced by bevy_asset when building as a local dependency with the filesystem_watcher feature disabled.

https://github.com/bevyengine/bevy/blob/main/crates/bevy_asset/src/io/file_asset_io.rs#L125-L143

For some reason this warning doesn't seem to be produced when using the crates.io dependency - I only observed it with a local copy of bevy 0.10

sarkahn avatar Mar 07 '23 01:03 sarkahn

@sarkahn can you try rebasing this? CI appears to be stuck.

alice-i-cecile avatar Mar 13 '23 15:03 alice-i-cecile

something like #[cfg_attr(not(feature = "filesystem_watcher"), allow(unused_variables))] would be more exact. I don't remember the exact syntax though

mockersf avatar Mar 13 '23 17:03 mockersf