Skip to content

Commit 79466fd

Browse files
Fix overlooked refactoring errors
1 parent 6bb5e56 commit 79466fd

File tree

1 file changed

+3
-10
lines changed

1 file changed

+3
-10
lines changed

crates/bevy_ecs/src/schedule/ambiguity_detection.rs

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -23,13 +23,6 @@ use std::hash::Hash;
2323
/// to have unambiguous order with regards to a group of already-constrained systems.
2424
///
2525
/// By default, the value of this resource is set to `Warn`.
26-
///
27-
/// ## Example
28-
/// ```ignore
29-
/// # use bevy_app::App;
30-
/// # use bevy_ecs::schedule::ReportExecutionOrderAmbiguities;
31-
/// App::new()
32-
/// .insert_resource(ReportExecutionOrderAmbiguities::verbose().ignore(&["my_external_crate"]));
3326
/// ```
3427
pub enum ExecutionOrderAmbiguities {
3528
/// Disables all checks for execution order ambiguities
@@ -57,7 +50,7 @@ pub enum ExecutionOrderAmbiguities {
5750
/// A pair of systems that can run in an ambiguous order
5851
///
5952
/// Created by applying [`find_ambiguities`] to a [`SystemContainer`].
60-
/// These can be reported by configuring the [`ReportExecutionOrderAmbiguities`] resource.
53+
/// These can be reported by configuring the [`ExecutionOrderAmbiguities`] resource.
6154
#[derive(Debug, Clone, Eq)]
6255
pub struct SystemOrderAmbiguity {
6356
// The names of the conflicting systems
@@ -427,7 +420,7 @@ impl SystemStage {
427420
}
428421

429422
if report_level == ExecutionOrderAmbiguities::Warn {
430-
println!("Set the level of the `ReportExecutionOrderAmbiguities` resource to `AmbiguityReportLevel::Verbose` for more details.");
423+
println!("Set the level of the `ExecutionOrderAmbiguities` resource to `ExecutionOrderAmbiguities::WarnVerbose` for more details.");
431424
} else {
432425
for (i, ambiguity) in ambiguities.iter().enumerate() {
433426
let ambiguity_number = i + 1;
@@ -454,7 +447,7 @@ impl SystemStage {
454447
if report_level == ExecutionOrderAmbiguities::Deny
455448
|| report_level == ExecutionOrderAmbiguities::Forbid
456449
{
457-
panic!("The `ReportExecutionOrderAmbiguities` resource is set to a level that forbids the app from running with unresolved system execution order ambiguities.")
450+
panic!("The `ExecutionOrderAmbiguities` resource is set to a level that forbids the app from running with unresolved system execution order ambiguities.")
458451
}
459452
}
460453
}

0 commit comments

Comments
 (0)