mirror of
https://github.com/talwat/lowfi
synced 2025-12-19 13:13:21 +00:00
style: reorder imports
This commit is contained in:
parent
9e1edc06eb
commit
556e6881d1
@ -79,3 +79,4 @@ must_use_candidate = "allow"
|
||||
cast_precision_loss = "allow"
|
||||
cast_sign_loss = "allow"
|
||||
cast_possible_truncation = "allow"
|
||||
struct_excessive_bools = "allow"
|
||||
|
||||
@ -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)?;
|
||||
interval.tick().await;
|
||||
}
|
||||
|
||||
@ -1,11 +1,9 @@
|
||||
use std::{env, time::Duration};
|
||||
|
||||
use tokio::time::Instant;
|
||||
|
||||
use crate::{
|
||||
ui::{self, components, window::Window},
|
||||
Args,
|
||||
};
|
||||
use std::{env, time::Duration};
|
||||
use tokio::time::Instant;
|
||||
|
||||
/// An extremely simple clock to be used alongside the [`Window`].
|
||||
pub struct Clock(Instant);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user