diff options
| -rw-r--r-- | engine/src/asset.rs | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/engine/src/asset.rs b/engine/src/asset.rs index b089b73..95ccb04 100644 --- a/engine/src/asset.rs +++ b/engine/src/asset.rs @@ -180,12 +180,10 @@ impl Assets } #[tracing::instrument(skip_all, fields(asset_type=type_name::<Asset>()))] - pub fn get<'this, 'handle, Asset: 'static + Send + Sync>( - &'this self, - handle: &'handle Handle<Asset>, - ) -> Option<&'handle Asset> - where - 'this: 'handle, + pub fn get<Asset: 'static + Send + Sync>( + &self, + handle: &Handle<Asset>, + ) -> Option<&Asset> { let asset_lookup = self.asset_lookup.borrow(); |
