Skip to content

Commit 8b7d557

Browse files
zicklagTekhnaeRaav
andauthored
fix: remove unnecessary &mut in World::insert_resource. (#510)
Remove the un-needed mutable reference. Co-authored-by: Tekhnae Raav <tekhnaeraav@katharostech.com>
1 parent 8714702 commit 8b7d557

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
@@ -139,7 +139,7 @@ impl World {
139139
}
140140

141141
/// Insert a resource.
142-
pub fn insert_resource<R: HasSchema>(&mut self, resource: R) -> Option<R> {
142+
pub fn insert_resource<R: HasSchema>(&self, resource: R) -> Option<R> {
143143
self.resources.insert(resource)
144144
}
145145

0 commit comments

Comments
 (0)