summaryrefslogtreecommitdiff
path: root/src/env.rs
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2020-12-17 15:43:30 +0100
committerLaurenz <laurmaedje@gmail.com>2020-12-17 15:43:30 +0100
commit6f111f941008f10ddc06e6f56da9e3582e90d2c4 (patch)
tree0ee44f6c9d88353320893522cf14931863ddf742 /src/env.rs
parent7e91c8dc87e345ee38b934375d113e824a423a2b (diff)
Test [font] 🧣
Diffstat (limited to 'src/env.rs')
-rw-r--r--src/env.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/env.rs b/src/env.rs
index 62a0ab3e..a3e14715 100644
--- a/src/env.rs
+++ b/src/env.rs
@@ -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")
}
}