Skip to content

Commit

Permalink
Add Lifetimes
Browse files Browse the repository at this point in the history
  • Loading branch information
ChosenName authored Sep 30, 2024
1 parent 5289e18 commit 3c12c40
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions crates/bevy_asset/src/server/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -131,9 +131,9 @@ impl AssetServer {
}

/// Retrieves the [`AssetSource`] for the given `source`.
pub fn get_source<'a>(
pub fn get_source<'a, 'b>(
&'a self,
source: impl Into<AssetSourceId<'a>>,
source: impl Into<AssetSourceId<'b>>,
) -> Result<&'a AssetSource, MissingAssetSourceError> {
self.data.sources.get(source.into())
}
Expand Down Expand Up @@ -218,9 +218,9 @@ impl AssetServer {
}

/// Retrieves the default [`AssetLoader`] for the given path, if one can be found.
pub async fn get_path_asset_loader<'a>(
pub async fn get_path_asset_loader<'a, 'b>(
&self,
path: impl Into<AssetPath<'a>>,
path: impl Into<AssetPath<'a, 'b>>,
) -> Result<Arc<dyn ErasedAssetLoader>, MissingAssetLoaderForExtensionError> {
let path = path.into();

Expand Down

0 comments on commit 3c12c40

Please sign in to comment.