Replace RoutingDsl trait with Router type (#214)

* Remove `RoutingDsl`

* Fix typo
This commit is contained in:
David Pedersen
2021-08-19 21:24:32 +02:00
committed by GitHub
parent 0fd17d4181
commit 97b53768ba
45 changed files with 177 additions and 283 deletions
-7
View File
@@ -12,7 +12,6 @@
//! Json,
//! handler::{post, Handler},
//! route,
//! routing::RoutingDsl
//! };
//! use serde::Deserialize;
//!
@@ -44,7 +43,6 @@
//! extract::{FromRequest, RequestParts},
//! handler::get,
//! route,
//! routing::RoutingDsl
//! };
//! use http::{StatusCode, header::{HeaderValue, USER_AGENT}};
//!
@@ -89,7 +87,6 @@
//! extract::{Path, Query},
//! handler::get,
//! route,
//! routing::RoutingDsl
//! };
//! use std::collections::HashMap;
//!
@@ -122,7 +119,6 @@
//! extract::Json,
//! handler::post,
//! route,
//! routing::RoutingDsl
//! };
//! use serde_json::Value;
//!
@@ -148,7 +144,6 @@
//! extract::{Json, rejection::JsonRejection},
//! handler::post,
//! route,
//! routing::RoutingDsl
//! };
//! use serde_json::Value;
//!
@@ -190,7 +185,6 @@
//! extract::Json,
//! handler::post,
//! route,
//! routing::RoutingDsl
//! };
//! use serde_json::Value;
//!
@@ -224,7 +218,6 @@
//! handler::get,
//! http::{header::HeaderMap, Request},
//! route,
//! routing::RoutingDsl
//! };
//!
//! struct MyBody<B>(B);