From 9232964bf00930fd146130661565aa19d693136e 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 41aa1ff311..b607e5c524 100644 --- a/jormungandr/src/explorer/graphql/mod.rs +++ b/jormungandr/src/explorer/graphql/mod.rs @@ -713,7 +713,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 async fn epoch_stability_depth(&self, context: &Context) -> String {