Skip to content

Commit

Permalink
patch
Browse files Browse the repository at this point in the history
  • Loading branch information
mrchantey committed Dec 6, 2024
1 parent adbfc5e commit 4225cf1
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion crates/bevy_asset/src/http_source.rs
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,10 @@ impl HttpSourceAssetReader {
async fn get<'a>(path: PathBuf) -> Result<Box<dyn Reader>, AssetReaderError> {
use crate::io::wasm::HttpWasmAssetReader;

HttpWasmAssetReader::new("").fetch_bytes(path).await
HttpWasmAssetReader::new("")
.fetch_bytes(path)
.await
.map(|r| Box::new(r))
}

#[cfg(not(target_arch = "wasm32"))]
Expand Down

0 comments on commit 4225cf1

Please sign in to comment.