Skip to content

Commit

Permalink
Pacify clippy more
Browse files Browse the repository at this point in the history
  • Loading branch information
mvines committed Jan 5, 2024
1 parent 52cb664 commit b7558f5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/db.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1740,7 +1740,7 @@ impl Db {
account.address
)));
}
if let Some(lot) = lots.get(0) {
if let Some(lot) = lots.first() {
let mut account = account.clone();
account.remove_lot(lot.lot_number);
tracked_accounts.push((lot.clone(), account));
Expand Down
2 changes: 1 addition & 1 deletion src/rpc_client_utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ pub async fn get_signature_date(
signature: Signature,
) -> Result<NaiveDate, Box<dyn std::error::Error>> {
let statuses = rpc_client.get_signature_statuses_with_history(&[signature])?;
if let Some(Some(ts)) = statuses.value.get(0) {
if let Some(Some(ts)) = statuses.value.first() {
let block_date = get_block_date(rpc_client, ts.slot).await?;
Ok(block_date)
} else {
Expand Down

0 comments on commit b7558f5

Please sign in to comment.