mirror of
https://github.com/fafhrd91/actix-net
synced 2024-11-30 16:34:36 +01:00
Fix clippy errors. (#187)
This commit is contained in:
parent
7632f51509
commit
88d99ac89c
@ -151,7 +151,7 @@ impl InternalServiceFactory for ConfiguredService {
|
|||||||
));
|
));
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
return Ok(res);
|
Ok(res)
|
||||||
}
|
}
|
||||||
.boxed_local()
|
.boxed_local()
|
||||||
}
|
}
|
||||||
@ -272,13 +272,13 @@ where
|
|||||||
fn new_service(&self, _: ()) -> Self::Future {
|
fn new_service(&self, _: ()) -> Self::Future {
|
||||||
let fut = self.inner.new_service(());
|
let fut = self.inner.new_service(());
|
||||||
async move {
|
async move {
|
||||||
return match fut.await {
|
match fut.await {
|
||||||
Ok(s) => Ok(Box::new(StreamService::new(s)) as BoxedServerService),
|
Ok(s) => Ok(Box::new(StreamService::new(s)) as BoxedServerService),
|
||||||
Err(e) => {
|
Err(e) => {
|
||||||
error!("Can not construct service: {:?}", e);
|
error!("Can not construct service: {:?}", e);
|
||||||
Err(())
|
Err(())
|
||||||
}
|
}
|
||||||
};
|
}
|
||||||
}
|
}
|
||||||
.boxed_local()
|
.boxed_local()
|
||||||
}
|
}
|
||||||
|
@ -624,7 +624,7 @@ impl ResourceDef {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if !for_prefix {
|
if !for_prefix {
|
||||||
re.push_str("$");
|
re.push('$');
|
||||||
}
|
}
|
||||||
(re, elems, true, pattern.chars().count())
|
(re, elems, true, pattern.chars().count())
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user