unused_variables warning when building with filesystem_watcher feature disabled (#7938)

This commit is contained in:
sark 2023-03-14 02:58:55 -06:00 committed by GitHub
parent e77eb003ec
commit 520e413c21
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -127,6 +127,7 @@ impl AssetIo for FileAssetIo {
to_watch: &Path,
to_reload: Option<PathBuf>,
) -> Result<(), AssetIoError> {
#![allow(unused_variables)]
#[cfg(feature = "filesystem_watcher")]
{
let to_reload = to_reload.unwrap_or_else(|| to_watch.to_owned());