Skip to content
This repository has been archived by the owner on Nov 6, 2020. It is now read-only.

Commit

Permalink
Avoid copies (#11451)
Browse files Browse the repository at this point in the history
* Avoid copies

* Unused import
  • Loading branch information
dvdplm committed Feb 4, 2020
1 parent e9fa4d0 commit 49f338a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions util/journaldb/src/overlayrecentdb.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ use std::{
collections::{HashMap, hash_map::Entry},
io,
sync::Arc,
time::Duration,
};

use ethereum_types::H256;
Expand Down Expand Up @@ -294,7 +293,7 @@ impl JournalDB for OverlayRecentDB {
let pkey = &key[..DB_PREFIX_LEN];
self.backing
.get_by_prefix(self.column, &pkey)
.map(|b| b.to_vec())
.map(|b| b.into_vec())
})
}

Expand Down

0 comments on commit 49f338a

Please sign in to comment.