style: rustfmt strip_port

This commit is contained in:
Razvan Dimescu
2026-04-12 23:59:51 +03:00
parent bd505813b6
commit 305935ed98

View File

@@ -70,9 +70,7 @@ fn strip_port(h: &str) -> Option<&str> {
if base.contains(':') {
return None;
}
port.bytes()
.all(|b| b.is_ascii_digit())
.then_some(base)
port.bytes().all(|b| b.is_ascii_digit()).then_some(base)
}
}