From 124ff48de82a6662b275e9eaab551a8073c872dc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A1nos=20Ill=C3=A9s?= Date: Sun, 2 Oct 2016 01:05:36 +0200 Subject: [PATCH] Remove redundant closure https://github.com/Manishearth/rust-clippy/wiki#redundant_closure --- src/format/parsed.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/format/parsed.rs b/src/format/parsed.rs index 8b0aab2..3d40191 100644 --- a/src/format/parsed.rs +++ b/src/format/parsed.rs @@ -555,7 +555,7 @@ impl Parsed { /// Returns a parsed fixed time zone offset out of given fields. pub fn to_fixed_offset(&self) -> ParseResult { - self.offset.and_then(|offset| FixedOffset::east_opt(offset)).ok_or(OUT_OF_RANGE) + self.offset.and_then(FixedOffset::east_opt).ok_or(OUT_OF_RANGE) } /// Returns a parsed timezone-aware date and time out of given fields.