diff --git a/crates/bevy_asset/src/io/file_asset_io.rs b/crates/bevy_asset/src/io/file_asset_io.rs index 93c6878c3147d..61003e2249fd4 100644 --- a/crates/bevy_asset/src/io/file_asset_io.rs +++ b/crates/bevy_asset/src/io/file_asset_io.rs @@ -127,6 +127,7 @@ impl AssetIo for FileAssetIo { to_watch: &Path, to_reload: Option, ) -> Result<(), AssetIoError> { + #![allow(unused_variables)] #[cfg(feature = "filesystem_watcher")] { let to_reload = to_reload.unwrap_or_else(|| to_watch.to_owned());