File tree Expand file tree Collapse file tree 3 files changed +4
-4
lines changed
examples/tools/scene_viewer Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -431,7 +431,7 @@ impl<A: Asset> Assets<A> {
431
431
/// [`Handle`] and [`AssetId`]. Be careful with holding the Arc indefinitely: holding the
432
432
/// [`Arc`] (or a [`Weak`]) prevents the asset from being mutated in place. This can incur
433
433
/// clones when using `get_cloned_mut`, or can just entirely block mutation when using
434
- /// `get_inplace_mut `.
434
+ /// `get_in_place_mut `.
435
435
///
436
436
/// [`Weak`]: std::sync::Weak
437
437
#[ inline]
@@ -448,7 +448,7 @@ impl<A: Asset> Assets<A> {
448
448
/// returns an error.
449
449
///
450
450
/// [`Weak`]: std::sync::Weak
451
- pub fn get_inplace_mut (
451
+ pub fn get_in_place_mut (
452
452
& mut self ,
453
453
id : impl Into < AssetId < A > > ,
454
454
) -> Result < & mut A , MutableAssetError > {
Original file line number Diff line number Diff line change @@ -1071,7 +1071,7 @@ mod tests {
1071
1071
1072
1072
{
1073
1073
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 ( ) ;
1075
1075
a. text = "Changed" . to_string ( ) ;
1076
1076
}
1077
1077
Original file line number Diff line number Diff line change @@ -114,7 +114,7 @@ fn scene_load_check(
114
114
)
115
115
} ) ;
116
116
let scene = scenes
117
- . get_inplace_mut ( gltf_scene_handle)
117
+ . get_in_place_mut ( gltf_scene_handle)
118
118
. expect ( "The asset is missing or is aliased." ) ;
119
119
120
120
let mut query = scene
You can’t perform that action at this time.
0 commit comments