From a38c8418dd32eedabf561c1be497750c8f450619 Mon Sep 17 00:00:00 2001 From: admin Date: Sun, 25 Oct 2026 13:16:41 +0800 Subject: [PATCH] =?UTF-8?q?style:=20=E4=BF=AE=20main.rs=20=E6=96=B0?= =?UTF-8?q?=E5=A2=9E=E6=B5=8B=E8=AF=95=E7=9A=84=20rustfmt=20=E8=BF=9D?= =?UTF-8?q?=E8=A7=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Code --- src/main.rs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/main.rs b/src/main.rs index dbb9cb3..5268263 100644 --- a/src/main.rs +++ b/src/main.rs @@ -248,7 +248,11 @@ mod tests { let err = std::io::Error::new(std::io::ErrorKind::AddrInUse, "Address already in use"); let msg = bind_failure_message(&addr, &err); assert!(msg.contains("127.0.0.1:30000"), "文案应含监听地址:{}", msg); - assert!(msg.contains("Address already in use"), "文案应含系统错误:{}", msg); + assert!( + msg.contains("Address already in use"), + "文案应含系统错误:{}", + msg + ); assert!(msg.contains("PORT="), "文案应给出改端口的办法:{}", msg); }