Skip to content

Commit

Permalink
clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
samkim-crypto committed Jan 5, 2024
1 parent addd3ed commit c5af5ed
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion record/program/src/processor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,9 @@ pub fn process_instruction(
}
msg!(
"reallocating +{:?} bytes",
needed_account_length - data_info.data_len()
needed_account_length
.checked_sub(data_info.data_len())
.unwrap(),
);
data_info.realloc(needed_account_length, false)?;

Expand Down

0 comments on commit c5af5ed

Please sign in to comment.