minor fixups

This commit is contained in:
Simon Gardling
2022-05-04 22:45:41 -04:00
parent 94258b4cb1
commit 5e5dd0f7a6
3 changed files with 18 additions and 26 deletions

View File

@@ -132,7 +132,7 @@ impl FunctionManager {
Button::new_const(WidgetText::RichText(RichText::new_const(text))).frame(false)
}
/// the y offset multiplier of the `buttons_area` area
/// The y offset multiplier of the `buttons_area` area
const BUTTONS_Y_OFFSET: f32 = 1.32;
widgets_ontop(
@@ -198,10 +198,7 @@ impl FunctionManager {
}
pub fn any_using_integral(&self) -> bool {
self.functions
.iter()
.filter(|(_, func)| func.integral)
.count() > 0
self.functions.iter().any(|(_, func)| func.integral)
}
#[inline]