diff --git a/src/actix_redis/session.rs.html b/src/actix_redis/session.rs.html index 791da42f3..6ebcfd1a2 100644 --- a/src/actix_redis/session.rs.html +++ b/src/actix_redis/session.rs.html @@ -862,8 +862,8 @@ actix_service::forward_ready!(service); fn call(&self, mut req: ServiceRequest) -> Self::Future { - let srv = self.service.clone(); - let inner = self.inner.clone(); + let srv = Rc::clone(&self.service); + let inner = Rc::clone(&self.inner); Box::pin(async move { let state = inner.load(&req).await?;