From 7fa3ffdd1de2bfcee206e17500795b8f33c72801 Mon Sep 17 00:00:00 2001 From: Zeeshan Ali Date: Thu, 6 Oct 2022 21:58:21 +0200 Subject: [PATCH] Drop a redundant closure Fixes a clippy warning: ``` warning: redundant closure --> src/parse/mod.rs:70:9 | 70 | |s| unescape_quoted(s), | ^^^^^^^^^^^^^^^^^^^^^^ help: replace the closure with the function itself: `unescape_quoted` | = note: `#[warn(clippy::redundant_closure)]` on by default = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_closure ``` --- src/parse/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/parse/mod.rs b/src/parse/mod.rs index 81f04c6..e49fe36 100644 --- a/src/parse/mod.rs +++ b/src/parse/mod.rs @@ -67,7 +67,7 @@ pub fn Quoted_string(input: &[u8]) -> IResult<&[u8], Cow<'_, str>> { map_res(recognize(many0(QcontentSMTP)), std::str::from_utf8), DQUOTE, ), - |s| unescape_quoted(s), + unescape_quoted, )(input) }