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