mirror of https://github.com/fafhrd91/actix-web
Fixed NormalizePath usage in docs
This commit is contained in:
parent
360c376283
commit
8879f2af12
|
@ -17,7 +17,7 @@ use futures_util::future::{ok, Either, FutureExt, LocalBoxFuture};
|
||||||
/// # fn main() {
|
/// # fn main() {
|
||||||
/// let enable_normalize = std::env::var("NORMALIZE_PATH") == Ok("true".into());
|
/// let enable_normalize = std::env::var("NORMALIZE_PATH") == Ok("true".into());
|
||||||
/// let app = App::new()
|
/// let app = App::new()
|
||||||
/// .wrap(Condition::new(enable_normalize, NormalizePath));
|
/// .wrap(Condition::new(enable_normalize, NormalizePath::default()));
|
||||||
/// # }
|
/// # }
|
||||||
/// ```
|
/// ```
|
||||||
pub struct Condition<T> {
|
pub struct Condition<T> {
|
||||||
|
|
Loading…
Reference in New Issue