From 868e29f42d7d6fea822bb9e478df6b6086fea86f Mon Sep 17 00:00:00 2001 From: Antoine Beyeler Date: Thu, 19 Dec 2024 16:51:18 +0100 Subject: [PATCH] Fix compilation conditionals --- .../re_component_ui/tests/test_all_components_ui.rs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/crates/viewer/re_component_ui/tests/test_all_components_ui.rs b/crates/viewer/re_component_ui/tests/test_all_components_ui.rs index 4eb9157787f3..5a309d4c13a7 100644 --- a/crates/viewer/re_component_ui/tests/test_all_components_ui.rs +++ b/crates/viewer/re_component_ui/tests/test_all_components_ui.rs @@ -228,11 +228,11 @@ fn test_single_component_ui_as_list_item( harness.run(); //TODO(#8245): enable this everywhere when we have a software renderer setup - #[cfg(target_os = "macos")] - return harness.try_wgpu_snapshot_options(&format!("{test_case}"), _snapshot_options); - - #[cfg(not(target_os = "macos"))] - Ok(()) + if cfg!(target_os = "macos") { + harness.try_wgpu_snapshot_options(&format!("{test_case}"), _snapshot_options) + } else { + Ok(()) + } } // ---