style: reorder imports

This commit is contained in:
talwat 2025-12-07 23:11:38 +01:00
parent 9e1edc06eb
commit 556e6881d1
3 changed files with 6 additions and 5 deletions

View File

@ -79,3 +79,4 @@ must_use_candidate = "allow"
cast_precision_loss = "allow" cast_precision_loss = "allow"
cast_sign_loss = "allow" cast_sign_loss = "allow"
cast_possible_truncation = "allow" cast_possible_truncation = "allow"
struct_excessive_bools = "allow"

View File

@ -182,7 +182,9 @@ impl Handle {
} }
} }
clock.as_mut().map(|x| x.update(&mut window)); if let Some(x) = clock.as_mut() {
x.update(&mut window)
}
interface::draw(&mut state, &mut window, params)?; interface::draw(&mut state, &mut window, params)?;
interval.tick().await; interval.tick().await;
} }

View File

@ -1,11 +1,9 @@
use std::{env, time::Duration};
use tokio::time::Instant;
use crate::{ use crate::{
ui::{self, components, window::Window}, ui::{self, components, window::Window},
Args, Args,
}; };
use std::{env, time::Duration};
use tokio::time::Instant;
/// An extremely simple clock to be used alongside the [`Window`]. /// An extremely simple clock to be used alongside the [`Window`].
pub struct Clock(Instant); pub struct Clock(Instant);