Skip to content

Commit

Permalink
Fix warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
elkowar committed Feb 17, 2024
1 parent efea885 commit 1db7ff3
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
1 change: 0 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -54,4 +54,3 @@ wait-timeout = "0.2"

[profile.dev]
split-debuginfo = "unpacked"

1 change: 1 addition & 0 deletions crates/eww/src/state/one_to_n_elements_map.rs
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ impl<I: Copy + std::hash::Hash + std::cmp::Eq + std::fmt::Debug, T> 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 {
Expand Down
2 changes: 2 additions & 0 deletions crates/eww/src/state/scope_graph.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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()
}
Expand Down Expand Up @@ -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) {
Expand Down

0 comments on commit 1db7ff3

Please sign in to comment.