Skip to content

Commit

Permalink
add panic section to App::run()
Browse files Browse the repository at this point in the history
  • Loading branch information
Vrixyz committed Dec 21, 2022
1 parent 0c8d944 commit fe8abaa
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions crates/bevy_app/src/app.rs
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,10 @@ impl App {
///
/// Finalizes the [`App`] configuration. For general usage, see the example on the item
/// level documentation.
///
/// # Panics
///
/// Panics if called from `Plugin::build()`, because it would prevent other plugins to properly build.
pub fn run(&mut self) {
#[cfg(feature = "trace")]
let _bevy_app_run_span = info_span!("bevy_app").entered();
Expand Down

0 comments on commit fe8abaa

Please sign in to comment.