Skip to content

Commit 9c777b1

Browse files
committed
Rename get_inplace_mut to get_in_place_mut.
1 parent 7685246 commit 9c777b1

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

crates/bevy_asset/src/assets.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -431,7 +431,7 @@ impl<A: Asset> Assets<A> {
431431
/// [`Handle`] and [`AssetId`]. Be careful with holding the Arc indefinitely: holding the
432432
/// [`Arc`] (or a [`Weak`]) prevents the asset from being mutated in place. This can incur
433433
/// clones when using `get_cloned_mut`, or can just entirely block mutation when using
434-
/// `get_inplace_mut`.
434+
/// `get_in_place_mut`.
435435
///
436436
/// [`Weak`]: std::sync::Weak
437437
#[inline]
@@ -448,7 +448,7 @@ impl<A: Asset> Assets<A> {
448448
/// returns an error.
449449
///
450450
/// [`Weak`]: std::sync::Weak
451-
pub fn get_inplace_mut(
451+
pub fn get_in_place_mut(
452452
&mut self,
453453
id: impl Into<AssetId<A>>,
454454
) -> Result<&mut A, MutableAssetError> {

crates/bevy_asset/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1071,7 +1071,7 @@ mod tests {
10711071

10721072
{
10731073
let mut texts = app.world_mut().resource_mut::<Assets<CoolText>>();
1074-
let a = texts.get_inplace_mut(a_id).unwrap();
1074+
let a = texts.get_in_place_mut(a_id).unwrap();
10751075
a.text = "Changed".to_string();
10761076
}
10771077

examples/tools/scene_viewer/scene_viewer_plugin.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ fn scene_load_check(
114114
)
115115
});
116116
let scene = scenes
117-
.get_inplace_mut(gltf_scene_handle)
117+
.get_in_place_mut(gltf_scene_handle)
118118
.expect("The asset is missing or is aliased.");
119119

120120
let mut query = scene

0 commit comments

Comments
 (0)