diff --git a/tuic-client/src/config.rs b/tuic-client/src/config.rs index c44ce5f..65cb2b4 100644 --- a/tuic-client/src/config.rs +++ b/tuic-client/src/config.rs @@ -277,8 +277,8 @@ pub fn deserialize_optional_bytes<'de, D>(deserializer: D) -> Result, { - let s = Option::::deserialize(deserializer)?; - Ok(s.map(|s| s.into_bytes())) + let s = String::deserialize(deserializer)?; + Ok(Some(s.into_bytes())) } pub fn deserialize_duration<'de, D>(deserializer: D) -> Result