Remove redundant closure
https://github.com/Manishearth/rust-clippy/wiki#redundant_closure
This commit is contained in:
parent
076a54532f
commit
124ff48de8
|
@ -555,7 +555,7 @@ impl Parsed {
|
||||||
|
|
||||||
/// Returns a parsed fixed time zone offset out of given fields.
|
/// Returns a parsed fixed time zone offset out of given fields.
|
||||||
pub fn to_fixed_offset(&self) -> ParseResult<FixedOffset> {
|
pub fn to_fixed_offset(&self) -> ParseResult<FixedOffset> {
|
||||||
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.
|
/// Returns a parsed timezone-aware date and time out of given fields.
|
||||||
|
|
Loading…
Reference in New Issue