mirror of https://github.com/fafhrd91/actix-web
fmt
This commit is contained in:
parent
358807c008
commit
afa92b02fa
|
@ -265,7 +265,7 @@ impl FromRequest for Method {
|
|||
#[doc(hidden)]
|
||||
impl FromRequest for () {
|
||||
type Error = Infallible;
|
||||
type Future = Ready<Result<(), Infallible>>;
|
||||
type Future = Ready<Result<Self, Self::Error>>;
|
||||
type Config = ();
|
||||
|
||||
fn from_request(_: &HttpRequest, _: &mut Payload) -> Self::Future {
|
||||
|
|
|
@ -149,7 +149,9 @@ pub mod dev {
|
|||
pub use actix_http::{Extensions, Payload, PayloadStream, RequestHead, ResponseHead};
|
||||
pub use actix_router::{Path, ResourceDef, ResourcePath, Url};
|
||||
pub use actix_server::Server;
|
||||
pub use actix_service::{always_ready, fn_factory, fn_service, forward_ready, Service, Transform};
|
||||
pub use actix_service::{
|
||||
always_ready, fn_factory, fn_service, forward_ready, Service, Transform,
|
||||
};
|
||||
|
||||
pub(crate) fn insert_slash(mut patterns: Vec<String>) -> Vec<String> {
|
||||
for path in &mut patterns {
|
||||
|
|
Loading…
Reference in New Issue