From 0fcde518c5800e29488d0c0aa591a7142b883219 Mon Sep 17 00:00:00 2001 From: Edward Shen Date: Wed, 19 May 2021 23:29:18 -0400 Subject: [PATCH] Use qualified instead of absolute --- src/cache/mod.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/cache/mod.rs b/src/cache/mod.rs index 30968eb..83296d0 100644 --- a/src/cache/mod.rs +++ b/src/cache/mod.rs @@ -2,6 +2,7 @@ use std::fmt::Display; use std::path::PathBuf; use std::pin::Pin; use std::str::FromStr; +use std::sync::Arc; use std::task::{Context, Poll}; use actix_web::http::HeaderValue; @@ -175,7 +176,7 @@ pub trait Cache: Send + Sync { } #[async_trait] -impl Cache for std::sync::Arc { +impl Cache for Arc { #[inline] async fn get( &self, @@ -207,7 +208,7 @@ pub trait CallbackCache: Cache { } #[async_trait] -impl CallbackCache for std::sync::Arc { +impl CallbackCache for Arc { #[inline] async fn put_with_on_completed_callback( &self,