From 3a6d6140a34e9908dbdaabb8a0f0717e755b1bc8 Mon Sep 17 00:00:00 2001 From: Jonas Platte Date: Tue, 18 Feb 2020 23:32:06 +0100 Subject: [PATCH] Fix clippy warning --- src/util.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/util.rs b/src/util.rs index 2c42ed16..efdc4278 100644 --- a/src/util.rs +++ b/src/util.rs @@ -57,7 +57,7 @@ where { let opt = Option::::deserialize(de)?; // 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); match opt { None | Some("") => Ok(None),