mirror of
https://github.com/servo/servo.git
synced 2025-08-05 21:50:18 +01:00
clippy: fix warnings in components/net (#31564)
* clippy: fix some warnings in components/net * fix: review comments * fix: tidy
This commit is contained in:
parent
099bb0fa19
commit
67b277c992
22 changed files with 325 additions and 379 deletions
|
@ -54,7 +54,7 @@ impl Service<Destination> for ServoHttpConnector {
|
|||
let authority = if let Some(port) = auth.port() {
|
||||
format!("{}:{}", host, port.as_str())
|
||||
} else {
|
||||
format!("{}", &*host)
|
||||
(*host).to_string()
|
||||
};
|
||||
|
||||
if let Ok(authority) = Authority::from_maybe_shared(authority) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue