Nit fixes.
This commit is contained in:
parent
9cba92f57f
commit
7916a9c227
1 changed files with 5 additions and 5 deletions
|
|
@ -285,15 +285,15 @@ pub fn is_focused(target: Id) -> impl Operation<bool> {
|
|||
_bounds: Rectangle,
|
||||
operate_on_children: &mut dyn FnMut(&mut dyn Operation<bool>),
|
||||
) {
|
||||
if self.is_focused.is_some() {
|
||||
return;
|
||||
}
|
||||
|
||||
operate_on_children(self);
|
||||
}
|
||||
|
||||
fn finish(&self) -> Outcome<bool> {
|
||||
if let Some(is_focused) = &self.is_focused {
|
||||
Outcome::Some(*is_focused)
|
||||
} else {
|
||||
Outcome::None
|
||||
}
|
||||
self.is_focused.map_or(Outcome::None, Outcome::Some)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue