config: deser_from_str isn't descriptor specific.

This commit is contained in:
Antoine Poinsot 2024-02-22 12:26:54 +01:00
parent 04f4b8a744
commit 6cf8eaab3b
No known key found for this signature in database
GPG Key ID: E13FC145CD3F4304

View File

@ -14,7 +14,7 @@ where
{
let string = String::deserialize(deserializer)?;
T::from_str(&string)
.map_err(|e| de::Error::custom(format!("Error parsing descriptor '{}': '{}'", string, e)))
.map_err(|e| de::Error::custom(format!("Error parsing '{}': {}", string, e)))
}
pub fn serialize_to_string<T: std::fmt::Display, S: Serializer>(