chore: lint
This commit is contained in:
parent
71b077b362
commit
59d0737a2b
1 changed files with 1 additions and 1 deletions
|
@ -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"),
|
||||||
)
|
)
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in a new issue