Use qualified instead of absolute

This commit is contained in:
Edward Shen 2021-05-19 23:29:18 -04:00
parent c488eccc8d
commit 0fcde518c5
Signed by: edward
GPG key ID: 19182661E818369F

5
src/cache/mod.rs vendored
View file

@ -2,6 +2,7 @@ use std::fmt::Display;
use std::path::PathBuf; use std::path::PathBuf;
use std::pin::Pin; use std::pin::Pin;
use std::str::FromStr; use std::str::FromStr;
use std::sync::Arc;
use std::task::{Context, Poll}; use std::task::{Context, Poll};
use actix_web::http::HeaderValue; use actix_web::http::HeaderValue;
@ -175,7 +176,7 @@ pub trait Cache: Send + Sync {
} }
#[async_trait] #[async_trait]
impl<T: Cache> Cache for std::sync::Arc<T> { impl<T: Cache> Cache for Arc<T> {
#[inline] #[inline]
async fn get( async fn get(
&self, &self,
@ -207,7 +208,7 @@ pub trait CallbackCache: Cache {
} }
#[async_trait] #[async_trait]
impl<T: CallbackCache> CallbackCache for std::sync::Arc<T> { impl<T: CallbackCache> CallbackCache for Arc<T> {
#[inline] #[inline]
async fn put_with_on_completed_callback( async fn put_with_on_completed_callback(
&self, &self,