mirror of
https://github.com/actix/actix-web.git
synced 2025-01-10 17:25:36 +00:00
fix doc test compatibility
This commit is contained in:
parent
476b1fb36a
commit
fee30d6f47
1 changed files with 2 additions and 3 deletions
|
@ -19,9 +19,8 @@ type ErrorHandler<S> = Fn(&mut HttpRequest<S>, HttpResponse) -> Result<Response>
|
||||||
///
|
///
|
||||||
/// ```rust
|
/// ```rust
|
||||||
/// # extern crate actix_web;
|
/// # extern crate actix_web;
|
||||||
/// use actix_web::{
|
/// use actix_web::{http, App, HttpRequest, HttpResponse, Result};
|
||||||
/// App, HttpRequest, HttpResponse, Result,
|
/// use actix_web::middleware::{Response, ErrorHandlers};
|
||||||
/// http, middleware::Response, middleware::ErrorHandlers};
|
|
||||||
///
|
///
|
||||||
/// fn render_500<S>(_: &mut HttpRequest<S>, resp: HttpResponse) -> Result<Response> {
|
/// fn render_500<S>(_: &mut HttpRequest<S>, resp: HttpResponse) -> Result<Response> {
|
||||||
/// let mut builder = resp.into_builder();
|
/// let mut builder = resp.into_builder();
|
||||||
|
|
Loading…
Reference in a new issue