From fee30d6f47840ecbf982f94acbe7f76561a3d6ce Mon Sep 17 00:00:00 2001 From: Nikolay Kim Date: Mon, 2 Apr 2018 22:01:20 -0700 Subject: [PATCH] fix doc test compatibility --- src/middleware/errhandlers.rs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/middleware/errhandlers.rs b/src/middleware/errhandlers.rs index 2906e39e..db3c70f3 100644 --- a/src/middleware/errhandlers.rs +++ b/src/middleware/errhandlers.rs @@ -19,9 +19,8 @@ type ErrorHandler = Fn(&mut HttpRequest, HttpResponse) -> Result /// /// ```rust /// # extern crate actix_web; -/// use actix_web::{ -/// App, HttpRequest, HttpResponse, Result, -/// http, middleware::Response, middleware::ErrorHandlers}; +/// use actix_web::{http, App, HttpRequest, HttpResponse, Result}; +/// use actix_web::middleware::{Response, ErrorHandlers}; /// /// fn render_500(_: &mut HttpRequest, resp: HttpResponse) -> Result { /// let mut builder = resp.into_builder();