From a7d0732f953d3288d255a1df51ca90a74ccf3e7d Mon Sep 17 00:00:00 2001 From: K Simmons Date: Tue, 13 Sep 2022 15:26:10 -0700 Subject: [PATCH] fixed release build issue --- crates/gpui/src/scene.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/crates/gpui/src/scene.rs b/crates/gpui/src/scene.rs index 501b6b3d98..e287744cf2 100644 --- a/crates/gpui/src/scene.rs +++ b/crates/gpui/src/scene.rs @@ -1,6 +1,7 @@ mod mouse_region; mod mouse_region_event; +#[cfg(debug_assertions)] use collections::HashSet; use serde::Deserialize; use serde_json::json; @@ -247,6 +248,7 @@ impl Scene { pub fn push_mouse_region(&mut self, region: MouseRegion) { if can_draw(region.bounds) { // Ensure that Regions cannot be added to a scene with the same region id. + #[cfg(debug_assertions)] let region_id; #[cfg(debug_assertions)] {