Skip to content

Commit

Permalink
Match app.get_sub_app as Option instead of Result
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 d086004 commit b193b54
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ pub struct DotGraphs {

pub fn setup(app: &mut App) {
let render_app = match app.get_sub_app(RenderApp) {
Ok(render_app) => render_app,
Err(_label) => {
Some(render_app) => render_app,
None => {
return;
}
};
Expand Down

0 comments on commit b193b54

Please sign in to comment.