From 9e685fc5fbc78e067b31d3baf3c522475f555252 Mon Sep 17 00:00:00 2001 From: Rob Ede Date: Wed, 14 Jul 2021 00:27:33 +0100 Subject: [PATCH] fix doc references --- src/dev.rs | 4 +++- src/server.rs | 5 +++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/src/dev.rs b/src/dev.rs index b8d95efbb..13bc48a29 100644 --- a/src/dev.rs +++ b/src/dev.rs @@ -18,7 +18,9 @@ pub use actix_http::body::{AnyBody, Body, BodySize, MessageBody, ResponseBody, S #[cfg(feature = "__compress")] pub use actix_http::encoding::Decoder as Decompress; -pub use actix_http::{Extensions, Payload, PayloadStream, RequestHead, ResponseHead}; +pub use actix_http::{ + CloneableExtensions, Extensions, Payload, PayloadStream, RequestHead, ResponseHead, +}; pub use actix_router::{Path, ResourceDef, ResourcePath, Url}; pub use actix_server::Server; pub use actix_service::{ diff --git a/src/server.rs b/src/server.rs index 17ff4f657..c302f0352 100644 --- a/src/server.rs +++ b/src/server.rs @@ -106,8 +106,9 @@ where } /// Sets function that will be called once before each connection is handled. - /// It will receive a `&std::any::Any`, which contains underlying connection type and an - /// [Extensions] container so that request-local data can be passed to middleware and handlers. + /// It will receive a `&std::any::Any`, which contains underlying connection type and a + /// [CloneableExtensions] container so that request-local data can be passed to middleware + /// and handlers. /// /// # Connection Types /// - `actix_web::rt::net::TcpStream` when no TLS layer is used.