diff --git a/Cargo.toml b/Cargo.toml index 9803782..ae2ef08 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -54,4 +54,3 @@ wait-timeout = "0.2" [profile.dev] split-debuginfo = "unpacked" - diff --git a/crates/eww/src/state/one_to_n_elements_map.rs b/crates/eww/src/state/one_to_n_elements_map.rs index 91834e0..fb7a814 100644 --- a/crates/eww/src/state/one_to_n_elements_map.rs +++ b/crates/eww/src/state/one_to_n_elements_map.rs @@ -69,6 +69,7 @@ impl OneToNElemen result } + #[cfg_attr(not(debug_assertions), allow(dead_code))] pub fn validate(&self) -> Result<()> { for (parent, children) in &self.parent_to_children { for child in children { diff --git a/crates/eww/src/state/scope_graph.rs b/crates/eww/src/state/scope_graph.rs index a0de7ee..3af08fa 100644 --- a/crates/eww/src/state/scope_graph.rs +++ b/crates/eww/src/state/scope_graph.rs @@ -110,6 +110,7 @@ impl ScopeGraph { self.graph.remove_scope(scope_index); } + #[cfg_attr(not(debug_assertions), allow(dead_code))] pub fn validate(&self) -> Result<()> { self.graph.validate() } @@ -505,6 +506,7 @@ mod internal { Ok(()) } + #[cfg_attr(not(debug_assertions), allow(dead_code))] pub fn validate(&self) -> Result<()> { for (child_scope, (parent_scope, _edge)) in &self.hierarchy_relations.child_to_parent { if !self.scopes.contains_key(child_scope) {