Skip to content

Commit d7db2b4

Browse files
committed
cargo fmt
1 parent 75ce831 commit d7db2b4

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

examples/stopwatch/src/main.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -201,20 +201,20 @@ fn anim_background() -> style_container::Chain {
201201
style_container::Chain::new(CONTAINER.clone())
202202
.link(StyleContainer::new(Duration::ZERO).style(theme::Container::Red))
203203
.link(
204-
StyleContainer::new(Duration::from_secs(3))
204+
StyleContainer::new(Duration::from_secs(1))
205205
// Notice how we can just pass the enum value here, where in the `anim_to_primary/destructive`
206206
// we have to use the fucntion `button_u8`? Because we use a implemented a custom iced theme,
207207
// we can just impl Into<u8> on the enum, and it works here!
208208
.style(theme::Container::Green)
209209
.ease(Sinusoidal::In),
210210
)
211211
.link(
212-
StyleContainer::new(Duration::from_secs(6))
212+
StyleContainer::new(Duration::from_secs(2))
213213
.style(theme::Container::Blue)
214214
.ease(Sinusoidal::In),
215215
)
216216
.link(
217-
StyleContainer::new(Duration::from_secs(9))
217+
StyleContainer::new(Duration::from_secs(3))
218218
.style(theme::Container::Red)
219219
.ease(Sinusoidal::In),
220220
)

src/timeline.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ pub enum Pause {
150150

151151
impl Pause {
152152
pub fn is_playing(&self) -> bool {
153-
!matches!(self, Pause::Paused(_))
153+
!matches!(self, Pause::Paused(_))
154154
}
155155
}
156156

0 commit comments

Comments
 (0)