Skip to content

Commit

Permalink
clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
HaoranYi committed Oct 20, 2023
1 parent a6d1dfb commit 7664ebc
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions accounts-db/src/accounts_db.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6225,9 +6225,6 @@ impl AccountsDb {
const TOTAL_FIELD_SIZE: usize = 8 /* lamports */ + 8 /* slot */ + 8 /* rent_epoch */ + 1 /* exec_flag */ + 32 /* owner_key */ + 32 /* pubkey */;
const DATA_SIZE_CAN_FIT: usize = BUF_SIZE - TOTAL_FIELD_SIZE;

const _: () = assert!(TOTAL_FIELD_SIZE == 89);
const _: () = assert!(DATA_SIZE_CAN_FIT == 39);

let mut buffer = SmallVec::<[u8; BUF_SIZE]>::new();

// collect lamports, slot, rent_epoch into buffer to hash
Expand Down

0 comments on commit 7664ebc

Please sign in to comment.