From 87a4e1e2d7747fd83ef7518a635ea143e63e78e6 Mon Sep 17 00:00:00 2001 From: Simon B Date: Sun, 20 Jan 2019 19:18:22 +0100 Subject: [PATCH] clippy says: unneeded return https://rust-lang.github.io/rust-clippy/master/index.html#needless_return --- api/src/handlers/blocks_api.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/api/src/handlers/blocks_api.rs b/api/src/handlers/blocks_api.rs index 935bf5af6..9c2b0b275 100644 --- a/api/src/handlers/blocks_api.rs +++ b/api/src/handlers/blocks_api.rs @@ -60,8 +60,8 @@ impl HeaderHandler { fn get_header_for_output(&self, commit_id: String) -> Result { let oid = get_output(&self.chain, &commit_id)?.1; match w(&self.chain).get_header_for_output(&oid) { - Ok(header) => return Ok(BlockHeaderPrintable::from_header(&header)), - Err(_) => return Err(ErrorKind::NotFound)?, + Ok(header) => Ok(BlockHeaderPrintable::from_header(&header)), + Err(_) => Err(ErrorKind::NotFound)?, } } }