Skip to content
Snippets Groups Projects
Unverified Commit 41fef1da authored by Jonas Platte's avatar Jonas Platte
Browse files

Remove unnecessary .to_string() calls

parent 892a0525
No related branches found
No related tags found
No related merge requests found
......@@ -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(
}
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)
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment