From cf9db84d313fc801fef417c827662a0cdaabf94e Mon Sep 17 00:00:00 2001 From: Priit Laes Date: Sun, 6 Oct 2019 21:20:19 +0300 Subject: [PATCH] Convert types::path examples to rust-2018 edition --- src/types/path.rs | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/types/path.rs b/src/types/path.rs index a46575764..fa7c6e110 100644 --- a/src/types/path.rs +++ b/src/types/path.rs @@ -39,8 +39,8 @@ use crate::FromRequest; /// implements `Deserialize` trait from *serde*. /// /// ```rust -/// #[macro_use] extern crate serde_derive; /// use actix_web::{web, App, Error}; +/// use serde_derive::Deserialize; /// /// #[derive(Deserialize)] /// struct Info { @@ -134,8 +134,8 @@ impl fmt::Display for Path { /// implements `Deserialize` trait from *serde*. /// /// ```rust -/// #[macro_use] extern crate serde_derive; /// use actix_web::{web, App, Error}; +/// use serde_derive::Deserialize; /// /// #[derive(Deserialize)] /// struct Info { @@ -190,10 +190,9 @@ where /// Path extractor configuration /// /// ```rust -/// # #[macro_use] -/// # extern crate serde_derive; /// use actix_web::web::PathConfig; /// use actix_web::{error, web, App, FromRequest, HttpResponse}; +/// use serde_derive::Deserialize; /// /// #[derive(Deserialize, Debug)] /// enum Folder {