From 956fa0c254d0f830648f39b6e817f27cf58a764f Mon Sep 17 00:00:00 2001 From: Claude DevOps Engineer Date: Thu, 29 Jan 2026 04:01:23 -0300 Subject: [PATCH] Fix missing format!() in SNTP version error message The error string used inline variable syntax "{vn}" but was a plain string literal instead of a format!() macro call, causing the error to display the literal text "{vn}" instead of the actual version. Closes #9 --- src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib.rs b/src/lib.rs index 69e79fe..37cf0e3 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -104,7 +104,7 @@ impl SntpRequest { if vn != 4 { return Err(Error::new( ErrorKind::Other, - "Server returned wrong SNTP version {vn}, expected 4.", + format!("Server returned wrong SNTP version {vn}, expected 4."), )); } let mode = hdr & 0x7;