Browse Source

Remove unnecessary .to_string() calls

merge-requests/228/head
Jonas Platte 4 years ago
parent
commit
41fef1da64
No known key found for this signature in database
GPG Key ID: CC154DE0E30B7C67
  1. 10
      src/server_server.rs

10
src/server_server.rs

@ -396,10 +396,7 @@ async fn find_actual_destination( @@ -396,10 +396,7 @@ async fn find_actual_destination(
}
if let Some(port) = force_port {
FedDest::Named(
delegated_hostname,
format!(":{}", port.to_string()),
)
FedDest::Named(delegated_hostname, format!(":{}", port))
} else {
add_port_to_hostname(&delegated_hostname)
}
@ -432,10 +429,7 @@ async fn find_actual_destination( @@ -432,10 +429,7 @@ async fn find_actual_destination(
}
if let Some(port) = force_port {
FedDest::Named(
hostname.clone(),
format!(":{}", port.to_string()),
)
FedDest::Named(hostname.clone(), format!(":{}", port))
} else {
add_port_to_hostname(&hostname)
}

Loading…
Cancel
Save