1
0
Fork 0
mirror of https://github.com/actix/actix-web.git synced 2024-12-23 00:26:34 +00:00

fix doc test compatibility

This commit is contained in:
Nikolay Kim 2018-04-02 22:01:20 -07:00
parent 476b1fb36a
commit fee30d6f47

View file

@ -19,9 +19,8 @@ type ErrorHandler<S> = Fn(&mut HttpRequest<S>, HttpResponse) -> Result<Response>
///
/// ```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<S>(_: &mut HttpRequest<S>, resp: HttpResponse) -> Result<Response> {
/// let mut builder = resp.into_builder();