This commit is contained in:
Chris Beck
2025-12-05 19:42:30 -07:00
parent f899d391b9
commit 35b274bbd3
3 changed files with 6 additions and 10 deletions
+1 -1
View File
@@ -239,7 +239,7 @@ where
D: serde::Deserializer<'de>,
{
let opt: Option<String> = Option::deserialize(deserializer)?;
Ok(opt.and_then(|s| Level::from_str(&s)))
Ok(opt.and_then(|s| Level::parse(&s)))
}
/// Deserialize a timestamp from Unix epoch (int or string) or RFC3339 string