From 7cefa64bd742b97d779996715f0799541c67c9fa Mon Sep 17 00:00:00 2001 From: Alex Kocharin Date: Thu, 9 Nov 2023 02:28:43 +0400 Subject: [PATCH] fix compile errors --- examples/asset/processing/asset_processing.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/examples/asset/processing/asset_processing.rs b/examples/asset/processing/asset_processing.rs index 88550df541f343..d6de283c9f2848 100644 --- a/examples/asset/processing/asset_processing.rs +++ b/examples/asset/processing/asset_processing.rs @@ -84,7 +84,7 @@ impl AssetLoader for TextLoader { reader: &'a mut Reader, settings: &'a TextSettings, _load_context: &'a mut LoadContext, - ) -> BoxedFuture<'a, Result> { + ) -> BoxedFuture<'a, Result> { Box::pin(async move { let mut bytes = Vec::new(); reader.read_to_end(&mut bytes).await?; @@ -138,7 +138,7 @@ impl AssetLoader for CoolTextLoader { reader: &'a mut Reader, _settings: &'a Self::Settings, load_context: &'a mut LoadContext, - ) -> BoxedFuture<'a, Result> { + ) -> BoxedFuture<'a, Result> { Box::pin(async move { let mut bytes = Vec::new(); reader.read_to_end(&mut bytes).await?; @@ -182,7 +182,7 @@ impl AssetSaver for CoolTextSaver { writer: &'a mut Writer, asset: SavedAsset<'a, Self::Asset>, settings: &'a Self::Settings, - ) -> BoxedFuture<'a, Result> { + ) -> BoxedFuture<'a, Result> { Box::pin(async move { let text = format!("{}{}", asset.text.clone(), settings.appended); writer.write_all(text.as_bytes()).await?;