Skip to content

Commit 6b87245

Browse files
committed
fix errors
1 parent 81dbcc1 commit 6b87245

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

crates/bevy_ecs/src/schedule/ambiguity_detection.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,6 @@ impl SystemOrderAmbiguity {
4545
stage: &SystemStage,
4646
world: &World,
4747
) -> Self {
48-
use crate::schedule::graph_utils::GraphNode;
4948
use SystemStageSegment::*;
5049

5150
// TODO: blocked on https://github.com/bevyengine/bevy/pull/4166
@@ -266,7 +265,7 @@ fn find_ambiguities(systems: &[SystemContainer]) -> Vec<(usize, usize, Vec<Compo
266265
let a_access = systems[index_a].component_access();
267266
let b_access = systems[index_b].component_access();
268267
if let (Some(a), Some(b)) = (a_access, b_access) {
269-
if !a.is_compatible(&b) {
268+
if !a.is_compatible(b) {
270269
ambiguities.push((index_a, index_b, a.get_conflicts(b)));
271270
}
272271
} else {

crates/bevy_ecs/src/schedule/stage.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -800,7 +800,7 @@ mod tests {
800800
use crate::{
801801
schedule::{
802802
IntoSystemDescriptor, RunCriteria, RunCriteriaDescriptorCoercion, ShouldRun,
803-
SingleThreadedExecutor, Stage, SystemLabel, SystemLabelId, SystemSet, SystemStage,
803+
SingleThreadedExecutor, Stage, SystemLabel, SystemSet, SystemStage,
804804
},
805805
system::{In, Local, Query, ResMut},
806806
world::World,

0 commit comments

Comments
 (0)