This commit is contained in:
rewin
2024-04-04 20:28:57 +03:00
parent 8f02d359ef
commit 22435c118a
+6 -3
View File
@@ -95,9 +95,12 @@ impl RemoteAssetReader {
let bytes = wasm::LoadLocalFromIdb::new(token);
info!("Sent request to bevy");
let bytes = bytes
.await
.map_err(|e| AssetReaderError::Io(Arc::new(std::io::Error::new(ErrorKind::Other, format!("{e:?}")))))?;
let bytes = bytes.await.map_err(|e| {
AssetReaderError::Io(Arc::new(std::io::Error::new(
ErrorKind::Other,
format!("{e:?}"),
)))
})?;
let reader: Box<Reader> = Box::new(VecReader::new(bytes));
Ok(reader)