We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dfff829 commit 07b5ad3Copy full SHA for 07b5ad3
sdk/pinocchio/src/entrypoint/mod.rs
@@ -281,14 +281,15 @@ macro_rules! process_accounts {
281
//
282
// Note: The function is marked as `cold` to stop the compiler from optimizing the parsing of
283
// duplicated accounts, which leads to an overall increase in CU consumption.
284
+#[allow(clippy::clone_on_copy)]
285
#[cold]
286
#[inline(always)]
287
unsafe fn clone_account_info(
288
accounts: *mut AccountView,
289
accounts_slice: *const AccountView,
290
index: u8,
291
) {
- accounts.write(*accounts_slice.add(index as usize));
292
+ accounts.write((*accounts_slice.add(index as usize)).clone());
293
}
294
295
/// Parse the arguments from the runtime input buffer.
0 commit comments