Fix typo
This commit is contained in:
parent
d31583a826
commit
a10da82ec0
@ -57,7 +57,7 @@ where
|
||||
{
|
||||
let opt = Option::<String>::deserialize(de)?;
|
||||
// TODO: Switch to and remove this attribute `opt.as_deref()` once MSRV is >= 1.40
|
||||
#[allow(clippy::clippy::option_as_ref_deref)]
|
||||
#[allow(clippy::option_as_ref_deref)]
|
||||
let opt = opt.as_ref().map(String::as_str);
|
||||
match opt {
|
||||
None | Some("") => Ok(None),
|
||||
|
Loading…
x
Reference in New Issue
Block a user