Skip to content

Commit

Permalink
Match get_sub_app_mut as an Option
Browse files Browse the repository at this point in the history
Addresses Bevy [9202](bevyengine/bevy#9202)
  • Loading branch information
zhaop committed Jun 24, 2024
1 parent 4c8e36d commit e6fc4ce
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/transform-gizmo-bevy/src/render.rs
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ impl Plugin for TransformGizmoRenderPlugin {
app.init_resource::<DrawDataHandles>()
.add_plugins(RenderAssetPlugin::<GizmoDrawData>::default());

let Ok(render_app) = app.get_sub_app_mut(RenderApp) else {
let Some(render_app) = app.get_sub_app_mut(RenderApp) else {
return;
};

Expand All @@ -62,7 +62,7 @@ impl Plugin for TransformGizmoRenderPlugin {
}

fn finish(&self, app: &mut App) {
let Ok(render_app) = app.get_sub_app_mut(RenderApp) else {
let Some(render_app) = app.get_sub_app_mut(RenderApp) else {
return;
};

Expand Down

0 comments on commit e6fc4ce

Please sign in to comment.