From 038a68b6747d15e3909646737280ca33121dda9b Mon Sep 17 00:00:00 2001 From: Enzo Cioppettini Date: Thu, 4 Feb 2021 10:53:04 -0300 Subject: [PATCH] fix latest block redundant closure --- jormungandr/src/explorer/graphql/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jormungandr/src/explorer/graphql/mod.rs b/jormungandr/src/explorer/graphql/mod.rs index 15b245fc58..89aa6b76cc 100644 --- a/jormungandr/src/explorer/graphql/mod.rs +++ b/jormungandr/src/explorer/graphql/mod.rs @@ -709,7 +709,7 @@ impl Status { } pub async fn latest_block(&self, context: &Context) -> FieldResult { - latest_block(context).await.map(|b| Block::from(b)) + latest_block(context).await.map(Block::from) } pub fn fee_settings(&self, context: &Context) -> FeeSettings {