From 520e413c219494b3158ecbdf2b69a786a8469819 Mon Sep 17 00:00:00 2001 From: sark Date: Tue, 14 Mar 2023 02:58:55 -0600 Subject: [PATCH] `unused_variables` warning when building with `filesystem_watcher` feature disabled (#7938) --- crates/bevy_asset/src/io/file_asset_io.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/crates/bevy_asset/src/io/file_asset_io.rs b/crates/bevy_asset/src/io/file_asset_io.rs index 93c6878c31..61003e2249 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());