Skip to content

Commit

Permalink
Rename get_id_mut (#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 Sep 2, 2020
1 parent 4e587db commit a1e254d
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 a1e254d

Please sign in to comment.