From a5da343ce1b9a76195b49118e8581cdbe28b308b Mon Sep 17 00:00:00 2001 From: zonyitoo Date: Sun, 17 Nov 2024 02:21:03 +0800 Subject: [PATCH] fix(shadowsocks): thiserror v2 ProtocolError fix embiguous --- crates/shadowsocks/src/relay/tcprelay/aead_2022.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/shadowsocks/src/relay/tcprelay/aead_2022.rs b/crates/shadowsocks/src/relay/tcprelay/aead_2022.rs index 21622b926cb7..7be2b3361316 100644 --- a/crates/shadowsocks/src/relay/tcprelay/aead_2022.rs +++ b/crates/shadowsocks/src/relay/tcprelay/aead_2022.rs @@ -102,7 +102,7 @@ pub enum ProtocolError { DecryptLengthError, #[error("invalid stream type, expecting {0:#x}, but found {1:#x}")] InvalidStreamType(u8, u8), - #[error("invalid timestamp {0} - now {1} = {}", *.0 as i64 - *.1 as i64)] + #[error("invalid timestamp {0} - now {1} = {ts_diff}", ts_diff = *.0 as i64 - *.1 as i64)] InvalidTimestamp(u64, u64), }