Skip to content

Commit

Permalink
Rebased on staging, fixed additionnal warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
ManevilleF committed May 10, 2022
1 parent e3db345 commit 1ad1b3d
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 15 deletions.
12 changes: 6 additions & 6 deletions crates/bevy_app/src/plugin_group.rs
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ mod tests {
std::any::TypeId::of::<PluginB>(),
std::any::TypeId::of::<PluginC>(),
]
)
);
}

#[test]
Expand All @@ -190,7 +190,7 @@ mod tests {
std::any::TypeId::of::<PluginC>(),
std::any::TypeId::of::<PluginB>(),
]
)
);
}

#[test]
Expand All @@ -207,7 +207,7 @@ mod tests {
std::any::TypeId::of::<PluginC>(),
std::any::TypeId::of::<PluginB>(),
]
)
);
}

#[test]
Expand All @@ -225,7 +225,7 @@ mod tests {
std::any::TypeId::of::<PluginC>(),
std::any::TypeId::of::<PluginB>(),
]
)
);
}

#[test]
Expand All @@ -243,7 +243,7 @@ mod tests {
std::any::TypeId::of::<PluginC>(),
std::any::TypeId::of::<PluginB>(),
]
)
);
}

#[test]
Expand All @@ -261,6 +261,6 @@ mod tests {
std::any::TypeId::of::<PluginC>(),
std::any::TypeId::of::<PluginB>(),
]
)
);
}
}
17 changes: 8 additions & 9 deletions crates/bevy_ecs/src/query/access.rs
Original file line number Diff line number Diff line change
Expand Up @@ -268,12 +268,11 @@ impl<T: SparseSetIndex> FilteredAccessSet<T> {
pub fn is_compatible(&self, other: &FilteredAccessSet<T>) -> bool {
if self.combined_access.is_compatible(other.combined_access()) {
return true;
} else {
for filtered in self.filtered_accesses.iter() {
for other_filtered in other.filtered_accesses.iter() {
if !filtered.is_compatible(other_filtered) {
return false;
}
}
for filtered in &self.filtered_accesses {
for other_filtered in &other.filtered_accesses {
if !filtered.is_compatible(other_filtered) {
return false;
}
}
}
Expand All @@ -286,8 +285,8 @@ impl<T: SparseSetIndex> FilteredAccessSet<T> {
// if the unfiltered access is incompatible, must check each pair
let mut conflicts = HashSet::new();
if !self.combined_access.is_compatible(other.combined_access()) {
for filtered in self.filtered_accesses.iter() {
for other_filtered in other.filtered_accesses.iter() {
for filtered in &self.filtered_accesses {
for other_filtered in &other.filtered_accesses {
conflicts.extend(filtered.get_conflicts(other_filtered).into_iter());
}
}
Expand All @@ -300,7 +299,7 @@ impl<T: SparseSetIndex> FilteredAccessSet<T> {
// if the unfiltered access is incompatible, must check each pair
let mut conflicts = HashSet::new();
if !self.combined_access.is_compatible(filtered_access.access()) {
for filtered in self.filtered_accesses.iter() {
for filtered in &self.filtered_accesses {
conflicts.extend(filtered.get_conflicts(filtered_access).into_iter());
}
}
Expand Down

0 comments on commit 1ad1b3d

Please sign in to comment.