diff options
author | Mathijs van Veluw <[email protected]> | 2024-09-23 20:25:32 +0200 |
---|---|---|
committer | GitHub <[email protected]> | 2024-09-23 20:25:32 +0200 |
commit | 040e2a7bb0f2cc5012d46ca99283cf21fa06ed1a (patch) | |
tree | 965859d5af16508bc260ee7019c442044d4e02e1 /src/http_client.rs | |
parent | d184c8f08cfdbc567d47d8edd473b8d22ebe8bd9 (diff) | |
download | vaultwarden-040e2a7bb0f2cc5012d46ca99283cf21fa06ed1a.tar.gz vaultwarden-040e2a7bb0f2cc5012d46ca99283cf21fa06ed1a.zip |
Add extra linting (#4977)1.32.1
* Add extra linting
Added extra linting for some code styles.
Also added the Rust Edition 2024 lints.
Closes #4974
Signed-off-by: BlackDex <[email protected]>
* Adjusted according to comments
Signed-off-by: BlackDex <[email protected]>
---------
Signed-off-by: BlackDex <[email protected]>
Diffstat (limited to 'src/http_client.rs')
-rw-r--r-- | src/http_client.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/http_client.rs b/src/http_client.rs index b4b8012e..9feba366 100644 --- a/src/http_client.rs +++ b/src/http_client.rs @@ -102,9 +102,9 @@ fn should_block_address_regex(domain_or_ip: &str) -> bool { fn should_block_host(host: Host<&str>) -> Result<(), CustomHttpClientError> { let (ip, host_str): (Option<IpAddr>, String) = match host { - url::Host::Ipv4(ip) => (Some(ip.into()), ip.to_string()), - url::Host::Ipv6(ip) => (Some(ip.into()), ip.to_string()), - url::Host::Domain(d) => (None, d.to_string()), + Host::Ipv4(ip) => (Some(ip.into()), ip.to_string()), + Host::Ipv6(ip) => (Some(ip.into()), ip.to_string()), + Host::Domain(d) => (None, d.to_string()), }; if let Some(ip) = ip { |