Skip to content

Commit

Permalink
ok, more clippy fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
dparnell committed Dec 22, 2023
1 parent 8ff722b commit d3d5456
Showing 1 changed file with 3 additions and 12 deletions.
15 changes: 3 additions & 12 deletions src/widgets/splitter.rs
Original file line number Diff line number Diff line change
Expand Up @@ -76,19 +76,13 @@ impl View for Splitter {
}

fn for_each_child<'a>(&'a self, for_each: &mut dyn FnMut(&'a dyn View) -> bool) {
if for_each(&self.child_1) {
} else if for_each(&self.handle) {

} else {
if !for_each(&self.child_1) && !for_each(&self.handle) {
for_each(&self.child_2);
}
}

fn for_each_child_mut<'a>(&'a mut self, for_each: &mut dyn FnMut(&'a mut dyn View) -> bool) {
if for_each(&mut self.child_1) {
} else if for_each(&mut self.handle) {

} else {
if !for_each(&mut self.child_1) && !for_each(&mut self.handle) {
for_each(&mut self.child_2);
}
}
Expand All @@ -97,10 +91,7 @@ impl View for Splitter {
&'a mut self,
for_each: &mut dyn FnMut(&'a mut dyn View) -> bool,
) {
if for_each(&mut self.child_2) {
} else if for_each(&mut self.handle) {

} else {
if !for_each(&mut self.child_2) && !for_each(&mut self.handle) {
for_each(&mut self.child_1);
}
}
Expand Down

0 comments on commit d3d5456

Please sign in to comment.