Skip to content

Commit e610ea2

Browse files
committed
suppress clippy boolean lints, import location from core
1 parent 7509abd commit e610ea2

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

crates/bevy_ecs/src/schedule/condition.rs

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1366,6 +1366,12 @@ mod tests {
13661366

13671367
#[test]
13681368
fn combinators_with_maybe_failing_condition() {
1369+
#![allow(
1370+
clippy::nonminimal_bool,
1371+
clippy::overly_complex_bool_expr,
1372+
reason = "Trailing `|| false` and `&& true` are used in this test to visually remain consistent with the combinators"
1373+
)]
1374+
13691375
use crate::system::RunSystemOnce;
13701376
use alloc::sync::Arc;
13711377
use std::sync::Mutex;
@@ -1463,7 +1469,7 @@ mod tests {
14631469
let out = RunSystemOnce::run_system_once(&mut *world, system).unwrap_or(false);
14641470

14651471
let (expected_counter, expected) = logic_call_result(equivalent_to);
1466-
let caller = std::panic::Location::caller();
1472+
let caller = core::panic::Location::caller();
14671473
let counter = *world.resource::<Counter>().0.lock().unwrap();
14681474

14691475
assert_eq!(

0 commit comments

Comments
 (0)