File tree 1 file changed +2
-2
lines changed
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -168,7 +168,7 @@ pub trait CachingDb {
168
168
self . cache_mut ( ) . logs . extend ( cache. logs . iter ( ) . cloned ( ) ) ;
169
169
self . cache_mut ( )
170
170
. block_hashes
171
- . extend ( cache. block_hashes . iter ( ) . map ( |( k, v) | ( * k, v . clone ( ) ) ) ) ;
171
+ . extend ( cache. block_hashes . iter ( ) . map ( |( k, v) | ( * k, * v ) ) ) ;
172
172
}
173
173
174
174
/// Extend the cache with the given cache by moving data.
@@ -230,7 +230,7 @@ pub trait TryCachingDb {
230
230
inner_cache. accounts . extend ( cache. accounts . iter ( ) . map ( |( k, v) | ( * k, v. clone ( ) ) ) ) ;
231
231
inner_cache. contracts . extend ( cache. contracts . iter ( ) . map ( |( k, v) | ( * k, v. clone ( ) ) ) ) ;
232
232
inner_cache. logs . extend ( cache. logs . iter ( ) . cloned ( ) ) ;
233
- inner_cache. block_hashes . extend ( cache. block_hashes . iter ( ) . map ( |( k, v) | ( * k, v . clone ( ) ) ) ) ;
233
+ inner_cache. block_hashes . extend ( cache. block_hashes . iter ( ) . map ( |( k, v) | ( * k, * v ) ) ) ;
234
234
Ok ( ( ) )
235
235
}
236
236
You can’t perform that action at this time.
0 commit comments