Skip to content

Commit 28c729c

Browse files
committed
Fix rustfmt: collapse single-line serr! macro call
1 parent 50444fb commit 28c729c

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

src/main.rs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -104,10 +104,7 @@ async fn main() {
104104
let next = match addr.port().checked_add(1) {
105105
Some(n) if n - start_port <= 100 => n,
106106
_ => {
107-
serr!(
108-
"no available port in range {start_port}–{}",
109-
addr.port()
110-
);
107+
serr!("no available port in range {start_port}–{}", addr.port());
111108
std::process::exit(1);
112109
}
113110
};

0 commit comments

Comments
 (0)