diff --git a/examples/expiring_sized_cache.rs b/examples/expiring_sized_cache.rs index 80d0524..85b2070 100644 --- a/examples/expiring_sized_cache.rs +++ b/examples/expiring_sized_cache.rs @@ -1,8 +1,8 @@ use cached::stores::ExpiringSizedCache; -use web_time::Instant; use std::sync::Arc; use std::time::Duration; use tokio::sync::RwLock; +use web_time::Instant; #[tokio::main] async fn main() { diff --git a/src/stores/disk.rs b/src/stores/disk.rs index 9fe2586..67683ae 100644 --- a/src/stores/disk.rs +++ b/src/stores/disk.rs @@ -1,12 +1,12 @@ use crate::IOCached; use directories::BaseDirs; -use web_time::Duration; use serde::de::DeserializeOwned; use serde::Serialize; use sled::Db; use std::marker::PhantomData; use std::path::Path; use std::{path::PathBuf, time::SystemTime}; +use web_time::Duration; pub struct DiskCacheBuilder { seconds: Option, diff --git a/src/stores/timed.rs b/src/stores/timed.rs index ae330a4..68b3e30 100644 --- a/src/stores/timed.rs +++ b/src/stores/timed.rs @@ -1,6 +1,6 @@ -use web_time::Instant; use std::cmp::Eq; use std::hash::Hash; +use web_time::Instant; #[cfg(feature = "ahash")] use hashbrown::{hash_map::Entry, HashMap};