From a10da82ec061f7987b4626db4def35b928526c7f Mon Sep 17 00:00:00 2001 From: Jonas Platte Date: Tue, 18 Feb 2020 21:11:08 +0100 Subject: [PATCH] Fix typo --- src/util.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/util.rs b/src/util.rs index 03fbb589..2c42ed16 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::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),