Skip to content

Commit

Permalink
Rename get_id_mut
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 committed Aug 24, 2020
1 parent f713150 commit 71018bf
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 71018bf

Please sign in to comment.