From ede32c8b3fbb29c5ea096c6f5d36ec1d0b46f2e8 Mon Sep 17 00:00:00 2001 From: Nikolay Kim Date: Sun, 24 Mar 2019 11:32:30 -0700 Subject: [PATCH] export errhandlers module --- src/middleware/errhandlers.rs | 2 ++ src/middleware/mod.rs | 3 +-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/middleware/errhandlers.rs b/src/middleware/errhandlers.rs index 7a79aae1..41bdb384 100644 --- a/src/middleware/errhandlers.rs +++ b/src/middleware/errhandlers.rs @@ -1,3 +1,4 @@ +/// Custom handlers service for responses. use std::rc::Rc; use actix_service::{Service, Transform}; @@ -106,6 +107,7 @@ where } } +#[doc(hidden)] pub struct ErrorHandlersMiddleware { service: S, handlers: Rc>>>, diff --git a/src/middleware/mod.rs b/src/middleware/mod.rs index e984b1d8..998b5905 100644 --- a/src/middleware/mod.rs +++ b/src/middleware/mod.rs @@ -6,11 +6,10 @@ pub use self::compress::Compress; pub mod cors; mod defaultheaders; -mod errhandlers; +pub mod errhandlers; mod logger; pub use self::defaultheaders::DefaultHeaders; -pub use self::errhandlers::{ErrorHandlerResponse, ErrorHandlers}; pub use self::logger::Logger; #[cfg(feature = "cookies")]