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
```
This commit is contained in:
Zeeshan Ali 2022-10-06 21:58:21 +02:00 committed by Damian Poddebniak
parent 10a0d4fc6b
commit 7fa3ffdd1d
1 changed files with 1 additions and 1 deletions

View File

@ -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)
}