aboutsummaryrefslogtreecommitdiff
path: root/src/http_client.rs
diff options
context:
space:
mode:
authorMathijs van Veluw <[email protected]>2024-09-23 20:25:32 +0200
committerGitHub <[email protected]>2024-09-23 20:25:32 +0200
commit040e2a7bb0f2cc5012d46ca99283cf21fa06ed1a (patch)
tree965859d5af16508bc260ee7019c442044d4e02e1 /src/http_client.rs
parentd184c8f08cfdbc567d47d8edd473b8d22ebe8bd9 (diff)
downloadvaultwarden-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.rs6
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 {