chore: lint

This commit is contained in:
Σrebe - Romain GERARD 2024-11-08 19:59:31 +01:00
parent 71b077b362
commit 59d0737a2b
No known key found for this signature in database
GPG key ID: 7A42B4B97E0332F4

View file

@ -1112,7 +1112,7 @@ async fn main() -> anyhow::Result<()> {
.map(|x| { .map(|x| {
let (host, port) = x.rsplit_once(':').expect("Invalid restrict-to format"); let (host, port) = x.rsplit_once(':').expect("Invalid restrict-to format");
( (
host.trim_matches(&['[', ']']).to_string(), host.trim_matches(['[', ']']).to_string(),
port.parse::<u16>().expect("Invalid restrict-to port format"), port.parse::<u16>().expect("Invalid restrict-to port format"),
) )
}) })