From 8cd963ad590d950a664f096337f176f0fc19f634 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20Christian=20Gr=C3=BCnhage?= Date: Sat, 14 Jan 2023 21:48:07 +0100 Subject: [PATCH] chore: fix clippy lints --- src/network.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/network.rs b/src/network.rs index 91027e4..52b7fac 100644 --- a/src/network.rs +++ b/src/network.rs @@ -32,7 +32,7 @@ pub const AAAA_RECORD: DnsContent = DnsContent::AAAA { }; pub async fn get_current_ipv4(client: &mut ReqwClient) -> Result { - Ok(client + client .get("https://ipv4.icanhazip.com") .send() .await @@ -42,11 +42,11 @@ pub async fn get_current_ipv4(client: &mut ReqwClient) -> Result { .context("Failed to read text body")? .trim() .parse() - .context("Failed to parse IPv4 address returned by ipv4.icanhazip.com")?) + .context("Failed to parse IPv4 address returned by ipv4.icanhazip.com") } pub async fn get_current_ipv6(client: &mut ReqwClient) -> Result { - Ok(client + client .get("https://ipv6.icanhazip.com") .send() .await @@ -56,7 +56,7 @@ pub async fn get_current_ipv6(client: &mut ReqwClient) -> Result { .context("Failed to read text body")? .trim() .parse() - .context("Failed to parse IPv6 address returned by ipv6.icanhazip.com")?) + .context("Failed to parse IPv6 address returned by ipv6.icanhazip.com") } pub async fn get_zone(domain: String, cf_client: &mut CfClient) -> Result {