Skip to content

Commit f80fa50

Browse files
zicklagTekhnaeRaav
andauthored
fix: remove unnecessary mutable borrow of world in world.get_resource_mut(). (#497)
Co-authored-by: Tekhnae Raav <[email protected]>
1 parent 096c3b4 commit f80fa50

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

framework_crates/bones_ecs/src/world.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ impl World {
179179
}
180180

181181
/// Borrow a resource from the world, if it exists.
182-
pub fn get_resource_mut<T: HasSchema>(&mut self) -> Option<RefMut<T>> {
182+
pub fn get_resource_mut<T: HasSchema>(&self) -> Option<RefMut<T>> {
183183
self.resources.get_mut()
184184
}
185185

0 commit comments

Comments
 (0)