Skip to content
This repository was archived by the owner on Mar 11, 2025. It is now read-only.

Commit c5af5ed

Browse files
committed
clippy
1 parent addd3ed commit c5af5ed

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

record/program/src/processor.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,9 @@ pub fn process_instruction(
173173
}
174174
msg!(
175175
"reallocating +{:?} bytes",
176-
needed_account_length - data_info.data_len()
176+
needed_account_length
177+
.checked_sub(data_info.data_len())
178+
.unwrap(),
177179
);
178180
data_info.realloc(needed_account_length, false)?;
179181

0 commit comments

Comments
 (0)