From f084041ab7f783a257131f23a9dbf5531f99ef2f Mon Sep 17 00:00:00 2001 From: Nam Chu Hoai Date: Sat, 28 Oct 2023 16:29:50 -0400 Subject: [PATCH] lint --- rust/agents/validator/src/submit.rs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/rust/agents/validator/src/submit.rs b/rust/agents/validator/src/submit.rs index 1ec92446d1..b94b5781a1 100644 --- a/rust/agents/validator/src/submit.rs +++ b/rust/agents/validator/src/submit.rs @@ -1,11 +1,10 @@ use std::num::NonZeroU64; -use std::str::FromStr; use std::sync::Arc; use std::time::{Duration, Instant}; use std::vec; use eyre::{bail, Result}; -use hyperlane_core::{MerkleTreeHook, H256}; +use hyperlane_core::MerkleTreeHook; use prometheus::IntGauge; use tokio::time::sleep; use tracing::{debug, info}; @@ -217,7 +216,7 @@ impl ValidatorSubmitter { bail!("Incorrect tree root, something went wrong"); } - if (checkpoint_queue.len() > 0) { + if !checkpoint_queue.is_empty() { info!( index = checkpoint.index, queue_len = checkpoint_queue.len(),