diff options
| author | Laurenz <laurmaedje@gmail.com> | 2020-12-17 15:43:30 +0100 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2020-12-17 15:43:30 +0100 |
| commit | 6f111f941008f10ddc06e6f56da9e3582e90d2c4 (patch) | |
| tree | 0ee44f6c9d88353320893522cf14931863ddf742 /src/env.rs | |
| parent | 7e91c8dc87e345ee38b934375d113e824a423a2b (diff) | |
Test [font] 🧣
Diffstat (limited to 'src/env.rs')
| -rw-r--r-- | src/env.rs | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -60,7 +60,7 @@ impl ResourceLoader { } }; - Some((id, self.get_loaded(id))) + Some((id, self.loaded(id))) } /// Retrieve a previously loaded resource by its id. @@ -68,7 +68,7 @@ impl ResourceLoader { /// # Panics /// This panics if no resource with this id was loaded. #[track_caller] - pub fn get_loaded<R: 'static>(&self, id: ResourceId) -> &R { + pub fn loaded<R: 'static>(&self, id: ResourceId) -> &R { self.entries[id.0].downcast_ref().expect("bad resource type") } } |
