Skip to content

Commit

Permalink
remove unneed clones
Browse files Browse the repository at this point in the history
  • Loading branch information
yihuang committed Nov 11, 2019
1 parent 76f1035 commit f586e8b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tendermint/src/abci/transaction.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ impl Transaction {

/// Convert this transaction into a byte vector
pub fn into_vec(self) -> Vec<u8> {
self.0.clone()
self.0
}

/// Borrow the contents of this transaction as a byte slice
Expand Down Expand Up @@ -79,7 +79,7 @@ impl Data {

/// Convert this collection into a vector
pub fn into_vec(self) -> Vec<Transaction> {
self.iter().cloned().collect()
self.txs.unwrap_or_default()
}

/// Iterate over the transactions in the collection
Expand Down

0 comments on commit f586e8b

Please sign in to comment.