From 6df37fd05f46ee205475a410e270b9b64766fd1a Mon Sep 17 00:00:00 2001 From: arya2 Date: Fri, 25 Aug 2023 17:24:15 -0400 Subject: [PATCH] rustfmt --- zebra-network/src/address_book.rs | 4 ++-- .../finalized_state/disk_format/upgrade/add_subtrees.rs | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/zebra-network/src/address_book.rs b/zebra-network/src/address_book.rs index de05b39bd..548c96aa0 100644 --- a/zebra-network/src/address_book.rs +++ b/zebra-network/src/address_book.rs @@ -354,7 +354,7 @@ impl AddressBook { /// See [`AddressBook::is_ready_for_connection_attempt_with_ip`] for more details. fn should_update_most_recent_by_ip(&self, updated: MetaAddr) -> bool { let Some(most_recent_by_ip) = self.most_recent_by_ip.as_ref() else { - return false + return false; }; if let Some(previous) = most_recent_by_ip.get(&updated.addr.ip()) { @@ -369,7 +369,7 @@ impl AddressBook { /// The entry is checked for an exact match to the IP and port of `addr`. fn should_remove_most_recent_by_ip(&self, addr: PeerSocketAddr) -> bool { let Some(most_recent_by_ip) = self.most_recent_by_ip.as_ref() else { - return false + return false; }; if let Some(previous) = most_recent_by_ip.get(&addr.ip()) { diff --git a/zebra-state/src/service/finalized_state/disk_format/upgrade/add_subtrees.rs b/zebra-state/src/service/finalized_state/disk_format/upgrade/add_subtrees.rs index acb21d827..b754278c5 100644 --- a/zebra-state/src/service/finalized_state/disk_format/upgrade/add_subtrees.rs +++ b/zebra-state/src/service/finalized_state/disk_format/upgrade/add_subtrees.rs @@ -27,7 +27,7 @@ pub fn _run( let Some(frontier) = tree.frontier() else { prev_tree = Some(tree); - continue + continue; }; // Blocks cannot complete multiple level 16 subtrees, @@ -101,7 +101,7 @@ pub fn _run( let Some(frontier) = tree.frontier() else { prev_tree = Some(tree); - continue + continue; }; // Blocks cannot complete multiple level 16 subtrees,