Skip to content

Commit

Permalink
run clippy to fix any issues
Browse files Browse the repository at this point in the history
  • Loading branch information
genusistimelord committed Aug 16, 2023
1 parent d3bd03e commit 280231a
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions src/native/modal.rs
Original file line number Diff line number Diff line change
Expand Up @@ -136,11 +136,10 @@ where
Renderer::Theme: StyleSheet,
{
fn children(&self) -> Vec<Tree> {
if let Some(overlay) = &self.overlay {
vec![Tree::new(&self.underlay), Tree::new(overlay)]
} else {
vec![Tree::new(&self.underlay)]
}
self.overlay.as_ref().map_or_else(
|| vec![Tree::new(&self.underlay)],
|overlay| vec![Tree::new(&self.underlay), Tree::new(overlay)],
)
}

fn diff(&self, tree: &mut Tree) {
Expand Down

0 comments on commit 280231a

Please sign in to comment.