unused_variables warning when building with filesystem_watcher feature disabled (#7938)
This commit is contained in:
parent
e77eb003ec
commit
520e413c21
@ -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());
|
||||
|
||||
Loading…
Reference in New Issue
Block a user