Skip to content

Commit

Permalink
bevy_asset: Fix FileAssetIo::new usage in test
Browse files Browse the repository at this point in the history
  • Loading branch information
superdump committed Jan 23, 2022
1 parent 7ab3baa commit fe3d13d
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion crates/bevy_asset/src/asset_server.rs
Original file line number Diff line number Diff line change
Expand Up @@ -624,7 +624,14 @@ mod test {
handle_to_path: Default::default(),
asset_lifecycles: Default::default(),
task_pool: Default::default(),
asset_io: Box::new(FileAssetIo::new(asset_path)),
asset_io: Box::new(FileAssetIo::new(
asset_path,
#[cfg(all(
feature = "filesystem_watcher",
all(not(target_arch = "wasm32"), not(target_os = "android"))
))]
false,
)),
}),
}
}
Expand Down

0 comments on commit fe3d13d

Please sign in to comment.