Skip to content

Commit e6fc4ce

Browse files
committed
Match get_sub_app_mut as an Option
Addresses Bevy [9202](bevyengine/bevy#9202)
1 parent 4c8e36d commit e6fc4ce

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

crates/transform-gizmo-bevy/src/render.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ impl Plugin for TransformGizmoRenderPlugin {
4646
app.init_resource::<DrawDataHandles>()
4747
.add_plugins(RenderAssetPlugin::<GizmoDrawData>::default());
4848

49-
let Ok(render_app) = app.get_sub_app_mut(RenderApp) else {
49+
let Some(render_app) = app.get_sub_app_mut(RenderApp) else {
5050
return;
5151
};
5252

@@ -62,7 +62,7 @@ impl Plugin for TransformGizmoRenderPlugin {
6262
}
6363

6464
fn finish(&self, app: &mut App) {
65-
let Ok(render_app) = app.get_sub_app_mut(RenderApp) else {
65+
let Some(render_app) = app.get_sub_app_mut(RenderApp) else {
6666
return;
6767
};
6868

0 commit comments

Comments
 (0)