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 625eac9 commit 2b6b572Copy full SHA for 2b6b572
sdk/pinocchio/src/entrypoint/mod.rs
@@ -282,14 +282,15 @@ macro_rules! process_accounts {
282
//
283
// Note: The function is marked as `cold` to stop the compiler from optimizing the parsing of
284
// duplicated accounts, which leads to an overall increase in CU consumption.
285
+#[allow(clippy::clone_on_copy)]
286
#[cold]
287
#[inline(always)]
288
unsafe fn clone_account_info(
289
accounts: *mut AccountView,
290
accounts_slice: *const AccountView,
291
index: u8,
292
) {
- accounts.write(*accounts_slice.add(index as usize));
293
+ accounts.write((*accounts_slice.add(index as usize)).clone());
294
}
295
296
/// Parse the arguments from the runtime input buffer.
0 commit comments