diff --git a/examples/side_bar/main.rs b/examples/side_bar/main.rs index b250ce75..8f0eeda2 100644 --- a/examples/side_bar/main.rs +++ b/examples/side_bar/main.rs @@ -45,9 +45,9 @@ fn main() -> iced::Result { TabBarExample::update, TabBarExample::view, ) - .font(iced_fonts::REQUIRED_FONT_BYTES) - .font(ICON_BYTES) - .run() + .font(iced_fonts::REQUIRED_FONT_BYTES) + .font(ICON_BYTES) + .run() } #[derive(Default)] diff --git a/src/widget/number_input.rs b/src/widget/number_input.rs index 44af0e99..a06d8056 100644 --- a/src/widget/number_input.rs +++ b/src/widget/number_input.rs @@ -302,7 +302,7 @@ where /// Sets the [`Id`] of the underlying [`TextInput`]. #[must_use] pub fn id(mut self, id: impl Into) -> Self { - self.content = self.content.id( id.into() ); + self.content = self.content.id(id.into()); self } } diff --git a/src/widget/spinner.rs b/src/widget/spinner.rs index e1732528..1beb8e55 100644 --- a/src/widget/spinner.rs +++ b/src/widget/spinner.rs @@ -11,9 +11,10 @@ use iced::{ }, event::Status, mouse::Cursor, + time::Instant, window, Border, Color, Element, Event, Length, Rectangle, Shadow, Size, Vector, }; -use std::time::{Duration, Instant}; +use std::time::Duration; /// A spinner widget, a circle spinning around the center of the widget. #[allow(missing_debug_implementations)]