Skip to content

Commit

Permalink
Clppy + rustfmt
Browse files Browse the repository at this point in the history
  • Loading branch information
jkilpatr committed Nov 29, 2023
1 parent 4b6aecf commit 4728a66
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
3 changes: 1 addition & 2 deletions rita_client_registration/src/client_db.rs
Original file line number Diff line number Diff line change
Expand Up @@ -545,7 +545,6 @@ pub fn parse_exit_identity_array_abi(bytes: Vec<u8>) -> Result<Vec<ExitIdentity>
)));
}


// 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,
Expand All @@ -561,7 +560,7 @@ pub fn parse_exit_identity_array_abi(bytes: Vec<u8>) -> Result<Vec<ExitIdentity>
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));
}
Expand Down
1 change: 0 additions & 1 deletion rita_client_registration/src/register_client_batch_loop.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 4728a66

Please sign in to comment.