Skip to content

Commit

Permalink
Merge pull request #302 from whizsid/fix-compile-error-wasm
Browse files Browse the repository at this point in the history
Fixing the compilation error caused by std Instant on WASM targets
  • Loading branch information
genusistimelord authored Nov 15, 2024
2 parents e6c8870 + da38183 commit 62b72b5
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
6 changes: 3 additions & 3 deletions examples/side_bar/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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)]
Expand Down
2 changes: 1 addition & 1 deletion src/widget/number_input.rs
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,7 @@ where
/// Sets the [`Id`] of the underlying [`TextInput`].
#[must_use]
pub fn id(mut self, id: impl Into<text_input::Id>) -> Self {
self.content = self.content.id( id.into() );
self.content = self.content.id(id.into());
self
}
}
Expand Down
3 changes: 2 additions & 1 deletion src/widget/spinner.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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)]
Expand Down

0 comments on commit 62b72b5

Please sign in to comment.