chore: apply cargo fmt

This commit is contained in:
Victoria Brekenfeld 2023-01-03 21:35:35 +01:00 committed by Michael Murphy
parent cb2b0f7b9a
commit 75687acf2f
22 changed files with 373 additions and 285 deletions

View file

@ -7,7 +7,10 @@ use iced::widget;
/// A button widget with COSMIC styling
#[must_use]
pub const fn button<Message>(style: theme::Button) -> Button<Message> {
Button { style, message: None }
Button {
style,
message: None,
}
}
/// A button widget with COSMIC styling
@ -25,7 +28,12 @@ impl<Message: 'static> Button<Message> {
}
/// A button with an icon.
pub fn icon(self, style: theme::Svg, icon: &str, size: u16) -> widget::Button<Message, Renderer> {
pub fn icon(
self,
style: theme::Svg,
icon: &str,
size: u16,
) -> widget::Button<Message, Renderer> {
self.custom(vec![super::icon(icon, size).style(style).into()])
}
@ -47,4 +55,3 @@ impl<Message: 'static> Button<Message> {
}
}
}