mirror of
https://github.com/zed-industries/zed.git
synced 2025-01-11 13:10:54 +00:00
fixed release build issue
This commit is contained in:
parent
0b5952e1bd
commit
a7d0732f95
1 changed files with 2 additions and 0 deletions
|
@ -1,6 +1,7 @@
|
||||||
mod mouse_region;
|
mod mouse_region;
|
||||||
mod mouse_region_event;
|
mod mouse_region_event;
|
||||||
|
|
||||||
|
#[cfg(debug_assertions)]
|
||||||
use collections::HashSet;
|
use collections::HashSet;
|
||||||
use serde::Deserialize;
|
use serde::Deserialize;
|
||||||
use serde_json::json;
|
use serde_json::json;
|
||||||
|
@ -247,6 +248,7 @@ impl Scene {
|
||||||
pub fn push_mouse_region(&mut self, region: MouseRegion) {
|
pub fn push_mouse_region(&mut self, region: MouseRegion) {
|
||||||
if can_draw(region.bounds) {
|
if can_draw(region.bounds) {
|
||||||
// Ensure that Regions cannot be added to a scene with the same region id.
|
// Ensure that Regions cannot be added to a scene with the same region id.
|
||||||
|
#[cfg(debug_assertions)]
|
||||||
let region_id;
|
let region_id;
|
||||||
#[cfg(debug_assertions)]
|
#[cfg(debug_assertions)]
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue