From 9616f14051d03b1a6dae4de41534d8746df346b0 Mon Sep 17 00:00:00 2001 From: Noah Callaway Date: Mon, 24 Aug 2020 11:37:38 -0700 Subject: [PATCH] Rename get_id_mut Renamed to get_with_id_mut to be parallel with get_with_id. --- crates/bevy_asset/src/assets.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/bevy_asset/src/assets.rs b/crates/bevy_asset/src/assets.rs index 208045ff1f4df..554ef8b9d7d02 100644 --- a/crates/bevy_asset/src/assets.rs +++ b/crates/bevy_asset/src/assets.rs @@ -61,10 +61,10 @@ impl Assets { } pub fn get_with_id(&self, id: HandleId) -> Option<&T> { - self.assets.get(&Handle::from_id(id)) + self.get(&Handle::from_id(id)) } - pub fn get_id_mut(&mut self, id: HandleId) -> Option<&mut T> { + pub fn get_with_id_mut(&mut self, id: HandleId) -> Option<&mut T> { self.get_mut(&Handle::from_id(id)) }