From 59d0737a2bde4ed57d016b1d0af683acda880a3f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=CE=A3rebe=20-=20Romain=20GERARD?= Date: Fri, 8 Nov 2024 19:59:31 +0100 Subject: [PATCH] chore: lint --- src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.rs b/src/main.rs index 1012ee0..b44c9e1 100644 --- a/src/main.rs +++ b/src/main.rs @@ -1112,7 +1112,7 @@ async fn main() -> anyhow::Result<()> { .map(|x| { let (host, port) = x.rsplit_once(':').expect("Invalid restrict-to format"); ( - host.trim_matches(&['[', ']']).to_string(), + host.trim_matches(['[', ']']).to_string(), port.parse::().expect("Invalid restrict-to port format"), ) })