Replace instant with web-time
This commit is contained in:
parent
cf77f82ae3
commit
5bbe87960e
8 changed files with 22 additions and 8 deletions
|
|
@ -3,7 +3,6 @@ use crate::event::{Event, StartCause};
|
|||
use crate::event_loop::ControlFlow;
|
||||
use crate::window::WindowId;
|
||||
|
||||
use instant::{Duration, Instant};
|
||||
use std::{
|
||||
cell::RefCell,
|
||||
clone::Clone,
|
||||
|
|
@ -12,6 +11,7 @@ use std::{
|
|||
ops::Deref,
|
||||
rc::{Rc, Weak},
|
||||
};
|
||||
use web_time::{Duration, Instant};
|
||||
|
||||
pub struct Shared<T: 'static>(Rc<Execution<T>>);
|
||||
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
use super::backend;
|
||||
use crate::event_loop::ControlFlow;
|
||||
|
||||
use instant::Instant;
|
||||
use web_time::Instant;
|
||||
|
||||
#[derive(Debug)]
|
||||
pub enum State {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue