Skip to content

Commit 1720cf5

Browse files
Fix overlooked refactoring errors
1 parent 6bb5e56 commit 1720cf5

File tree

1 file changed

+3
-11
lines changed

1 file changed

+3
-11
lines changed

crates/bevy_ecs/src/schedule/ambiguity_detection.rs

+3-11
Original file line numberDiff line numberDiff line change
@@ -23,14 +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"]));
33-
/// ```
3426
pub enum ExecutionOrderAmbiguities {
3527
/// Disables all checks for execution order ambiguities
3628
Allow,
@@ -57,7 +49,7 @@ pub enum ExecutionOrderAmbiguities {
5749
/// A pair of systems that can run in an ambiguous order
5850
///
5951
/// Created by applying [`find_ambiguities`] to a [`SystemContainer`].
60-
/// These can be reported by configuring the [`ReportExecutionOrderAmbiguities`] resource.
52+
/// These can be reported by configuring the [`ExecutionOrderAmbiguities`] resource.
6153
#[derive(Debug, Clone, Eq)]
6254
pub struct SystemOrderAmbiguity {
6355
// The names of the conflicting systems
@@ -427,7 +419,7 @@ impl SystemStage {
427419
}
428420

429421
if report_level == ExecutionOrderAmbiguities::Warn {
430-
println!("Set the level of the `ReportExecutionOrderAmbiguities` resource to `AmbiguityReportLevel::Verbose` for more details.");
422+
println!("Set the level of the `ExecutionOrderAmbiguities` resource to `ExecutionOrderAmbiguities::WarnVerbose` for more details.");
431423
} else {
432424
for (i, ambiguity) in ambiguities.iter().enumerate() {
433425
let ambiguity_number = i + 1;
@@ -454,7 +446,7 @@ impl SystemStage {
454446
if report_level == ExecutionOrderAmbiguities::Deny
455447
|| report_level == ExecutionOrderAmbiguities::Forbid
456448
{
457-
panic!("The `ReportExecutionOrderAmbiguities` resource is set to a level that forbids the app from running with unresolved system execution order ambiguities.")
449+
panic!("The `ExecutionOrderAmbiguities` resource is set to a level that forbids the app from running with unresolved system execution order ambiguities.")
458450
}
459451
}
460452
}

0 commit comments

Comments
 (0)