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_precision_loss = "allow"
|
||||||
cast_sign_loss = "allow"
|
cast_sign_loss = "allow"
|
||||||
cast_possible_truncation = "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)?;
|
interface::draw(&mut state, &mut window, params)?;
|
||||||
interval.tick().await;
|
interval.tick().await;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -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);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user