UiTransactionEncoding is now copy

This commit is contained in:
Michael Vines 2020-07-27 08:23:17 -07:00
parent c31e1f5bf0
commit 494968be66
2 changed files with 2 additions and 2 deletions

View File

@ -1658,7 +1658,7 @@ impl Blockstore {
iterator iterator
.map(|transaction| { .map(|transaction| {
let signature = transaction.signatures[0]; let signature = transaction.signatures[0];
let encoded_transaction = EncodedTransaction::encode(transaction, encoding.clone()); let encoded_transaction = EncodedTransaction::encode(transaction, encoding);
TransactionWithStatusMeta { TransactionWithStatusMeta {
transaction: encoded_transaction, transaction: encoded_transaction,
meta: self meta: self

View File

@ -204,7 +204,7 @@ pub struct TransactionWithStatusMeta {
pub meta: Option<UiTransactionStatusMeta>, pub meta: Option<UiTransactionStatusMeta>,
} }
#[derive(Serialize, Deserialize, Clone, Debug, PartialEq)] #[derive(Serialize, Deserialize, Clone, Copy, Debug, PartialEq)]
#[serde(rename_all = "camelCase")] #[serde(rename_all = "camelCase")]
pub enum UiTransactionEncoding { pub enum UiTransactionEncoding {
Binary, Binary,