Skip to content

Commit 9d5e409

Browse files
committed
Add conditional copy derive
1 parent 1dfbc53 commit 9d5e409

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

sdk/pinocchio/src/sysvars/slot_hashes/test_utils.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@ use std::vec::Vec;
1212
/// Account fields are private, so this struct allows more readable
1313
/// use of them in tests.
1414
#[repr(C)]
15-
#[derive(Clone, Copy)]
15+
#[cfg_attr(feature = "copy", derive(Copy))]
16+
#[derive(Clone)]
1617
pub struct AccountLayout {
1718
pub borrow_state: u8,
1819
pub is_signer: u8,

0 commit comments

Comments
 (0)