1
0
mirror of https://github.com/fafhrd91/actix-web synced 2025-06-27 15:29:03 +02:00

Remove usage of upcoming keyword async

AsyncResult::async is replaced with AsyncResult::future
This commit is contained in:
Douman
2018-12-05 03:07:59 -05:00
parent b1635bc0e6
commit 0745a1a9f8
9 changed files with 14 additions and 10 deletions

View File

@ -76,7 +76,7 @@ impl ResponseError for CsrfError {
}
fn uri_origin(uri: &Uri) -> Option<String> {
match (uri.scheme_part(), uri.host(), uri.port()) {
match (uri.scheme_part(), uri.host(), uri.port_part().map(|port| port.as_u16())) {
(Some(scheme), Some(host), Some(port)) => {
Some(format!("{}://{}:{}", scheme, host, port))
}