diff --git a/src/util.rs b/src/util.rs index 2a5c9631..03fbb589 100644 --- a/src/util.rs +++ b/src/util.rs @@ -56,6 +56,8 @@ where T: serde::Deserialize<'de>, { let opt = Option::::deserialize(de)?; + // TODO: Switch to and remove this attribute `opt.as_deref()` once MSRV is >= 1.40 + #[allow(clippy::clippy::option_as_ref_deref)] let opt = opt.as_ref().map(String::as_str); match opt { None | Some("") => Ok(None),