From 4728a6625726eccc3620e99ed25b5a7683c5cdef Mon Sep 17 00:00:00 2001 From: Justin Kilpatrick Date: Wed, 29 Nov 2023 18:39:21 +0530 Subject: [PATCH] Clppy + rustfmt --- rita_client_registration/src/client_db.rs | 3 +-- rita_client_registration/src/register_client_batch_loop.rs | 1 - 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/rita_client_registration/src/client_db.rs b/rita_client_registration/src/client_db.rs index 96713d63d..ea0f21cfc 100644 --- a/rita_client_registration/src/client_db.rs +++ b/rita_client_registration/src/client_db.rs @@ -545,7 +545,6 @@ pub fn parse_exit_identity_array_abi(bytes: Vec) -> Result ))); } - // Get number of entries in the array let num_entries: usize = usize::from_be_bytes(match byte_chunks[1][24..WORD_SIZE].try_into() { Ok(a) => a, @@ -561,7 +560,7 @@ pub fn parse_exit_identity_array_abi(bytes: Vec) -> Result let index = 2; for i in index..index + num_entries { if i >= byte_chunks.len() { - let msg = format!("Encoded array length longer than data"); + let msg = "Encoded array length longer than data".to_string(); error!("{}", msg); return Err(Web3Error::BadInput(msg)); } diff --git a/rita_client_registration/src/register_client_batch_loop.rs b/rita_client_registration/src/register_client_batch_loop.rs index 16c8b6078..833901108 100644 --- a/rita_client_registration/src/register_client_batch_loop.rs +++ b/rita_client_registration/src/register_client_batch_loop.rs @@ -73,7 +73,6 @@ pub fn register_client_batch_loop( } } } - // there is no one once we filter already registered users if clients_to_register.is_empty() { thread::sleep(WEB3_TIMEOUT);