mirror of
https://gitlab.com/famedly/conduit.git
synced 2024-12-29 05:53:48 +03:00
Remove unnecessary .to_string() calls
This commit is contained in:
parent
892a0525f2
commit
41fef1da64
1 changed files with 2 additions and 8 deletions
|
@ -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)
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue