Skip to content

Commit

Permalink
no clone on frame
Browse files Browse the repository at this point in the history
  • Loading branch information
apfitzge committed Oct 3, 2024
1 parent f2ddce8 commit a27f766
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion transaction-view/src/address_table_lookup_frame.rs
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ const MAX_ATLS_PER_PACKET: u8 =
((PACKET_DATA_SIZE - MIN_SIZED_PACKET_WITH_ATLS) / MIN_SIZED_ATL) as u8;

/// Contains metadata about the address table lookups in a transaction packet.
#[derive(Clone, Debug)]
#[derive(Debug)]
pub(crate) struct AddressTableLookupFrame {
/// The number of address table lookups in the transaction.
pub(crate) num_address_table_lookups: u8,
Expand Down
2 changes: 1 addition & 1 deletion transaction-view/src/instructions_frame.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ use {
};

/// Contains metadata about the instructions in a transaction packet.
#[derive(Clone, Debug)]
#[derive(Debug)]
pub(crate) struct InstructionsFrame {
/// The number of instructions in the transaction.
pub(crate) num_instructions: u16,
Expand Down
2 changes: 1 addition & 1 deletion transaction-view/src/message_header_frame.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ pub enum TransactionVersion {
}

/// Metadata for accessing message header fields in a transaction view.
#[derive(Clone, Debug)]
#[derive(Debug)]
pub(crate) struct MessageHeaderFrame {
/// The offset to the first byte of the message in the transaction packet.
pub(crate) offset: u16,
Expand Down
2 changes: 1 addition & 1 deletion transaction-view/src/signature_frame.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ const MAX_SIGNATURES_PER_PACKET: u8 =
(PACKET_DATA_SIZE / (core::mem::size_of::<Signature>() + core::mem::size_of::<Pubkey>())) as u8;

/// Metadata for accessing transaction-level signatures in a transaction view.
#[derive(Clone, Debug)]
#[derive(Debug)]
pub(crate) struct SignatureFrame {
/// The number of signatures in the transaction.
pub(crate) num_signatures: u8,
Expand Down
2 changes: 1 addition & 1 deletion transaction-view/src/static_account_keys_frame.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ pub const MAX_STATIC_ACCOUNTS_PER_PACKET: u8 =
(PACKET_DATA_SIZE / core::mem::size_of::<Pubkey>()) as u8;

/// Contains metadata about the static account keys in a transaction packet.
#[derive(Clone, Debug)]
#[derive(Debug)]
pub(crate) struct StaticAccountKeysFrame {
/// The number of static accounts in the transaction.
pub(crate) num_static_accounts: u8,
Expand Down
2 changes: 1 addition & 1 deletion transaction-view/src/transaction_frame.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ use {
solana_sdk::{hash::Hash, pubkey::Pubkey, signature::Signature},
};

#[derive(Clone, Debug)]
#[derive(Debug)]
pub(crate) struct TransactionFrame {
/// Signature framing data.
signature: SignatureFrame,
Expand Down

0 comments on commit a27f766

Please sign in to comment.