From 6fd6ce136739cc81b768952c218793b36edd4beb Mon Sep 17 00:00:00 2001 From: Alice Cecile Date: Tue, 17 Dec 2024 13:34:11 -0800 Subject: [PATCH] Feature flag testbed_3d code correctly (#16866) # Objective Rust-Analyzer was reporting problems with dead code in the 3d testbed scene. ## Solution These scenes don't work in CI on the Windows runner (because they're too weak). Mirror the feature flags from above onto the offending modules. ## Testing RA no longer complains. --- examples/testbed/3d.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/examples/testbed/3d.rs b/examples/testbed/3d.rs index df7a02aa8234d..26132fe87e530 100644 --- a/examples/testbed/3d.rs +++ b/examples/testbed/3d.rs @@ -138,6 +138,7 @@ mod light { } } +#[cfg(not(all(feature = "bevy_ci_testing", target_os = "windows")))] mod bloom { use bevy::{ core_pipeline::{bloom::Bloom, tonemapping::Tonemapping}, @@ -191,6 +192,7 @@ mod bloom { } } +#[cfg(not(all(feature = "bevy_ci_testing", target_os = "windows")))] mod gltf { use bevy::prelude::*;