aboutsummaryrefslogtreecommitdiff
path: root/src/assets.rs
diff options
context:
space:
mode:
authorLibravatar Silas Bartha <silas@exvacuum.dev>2024-12-09 15:36:24 -0500
committerLibravatar Silas Bartha <silas@exvacuum.dev>2024-12-09 15:36:24 -0500
commit5aa98ce81c5b62601c892e9b64bdc7155ec97aa6 (patch)
tree683ee8dbeeb55bdb30c60e84e7c2e60cd966ef67 /src/assets.rs
parent7ee9bf6172fda8ea6a20bed9326a0918f3371226 (diff)
Updated to Bevy 0.15v0.3.0
Diffstat (limited to 'src/assets.rs')
-rw-r--r--src/assets.rs12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/assets.rs b/src/assets.rs
index cb62380..5439f04 100644
--- a/src/assets.rs
+++ b/src/assets.rs
@@ -6,7 +6,7 @@ use std::{
use async_channel::{Receiver, TryRecvError};
use bevy::{
- asset::{io::Reader, AssetLoader, AsyncReadExt, LoadContext},
+ asset::{io::Reader, AssetLoader, LoadContext},
audio::Source,
prelude::*,
tasks::AsyncComputeTaskPool,
@@ -64,11 +64,11 @@ impl AssetLoader for MidiAssetLoader {
type Error = io::Error;
- async fn load<'a>(
- &'a self,
- reader: &'a mut Reader<'_>,
- _settings: &'a Self::Settings,
- _load_context: &'a mut LoadContext<'_>,
+ async fn load(
+ &self,
+ reader: &mut dyn Reader,
+ _settings: &Self::Settings,
+ _load_context: &mut LoadContext<'_>,
) -> Result<Self::Asset, Self::Error> {
let mut bytes = vec![];
reader.read_to_end(&mut bytes).await?;