Skip to content

Commit

Permalink
Rename get_id_mut (bevyengine#332)
Browse files Browse the repository at this point in the history
Renamed to get_with_id_mut to be parallel with get_with_id.
  • Loading branch information
ncallaway authored and mrk-its committed Oct 6, 2020
1 parent 805d50e commit 5588438
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/bevy_asset/src/assets.rs
Original file line number Diff line number Diff line change
Expand Up @@ -61,10 +61,10 @@ impl<T: Resource> Assets<T> {
}

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))
}

Expand Down

0 comments on commit 5588438

Please sign in to comment.