remove clone (#24244)
This commit is contained in:
parent
60b2155bd3
commit
9ac2245970
|
@ -158,7 +158,7 @@ impl SnapshotRequestHandler {
|
|||
ancestors: None,
|
||||
use_write_cache: false,
|
||||
epoch_schedule: snapshot_root_bank.epoch_schedule(),
|
||||
rent_collector: &snapshot_root_bank.rent_collector(),
|
||||
rent_collector: snapshot_root_bank.rent_collector(),
|
||||
},
|
||||
).unwrap();
|
||||
assert_eq!(previous_hash, this_hash);
|
||||
|
|
|
@ -6155,8 +6155,8 @@ impl Bank {
|
|||
*self.inflation.read().unwrap()
|
||||
}
|
||||
|
||||
pub fn rent_collector(&self) -> RentCollector {
|
||||
self.rent_collector.clone()
|
||||
pub fn rent_collector(&self) -> &RentCollector {
|
||||
&self.rent_collector
|
||||
}
|
||||
|
||||
/// Return the total capitalization of the Bank
|
||||
|
|
|
@ -112,7 +112,7 @@ impl AccountsPackage {
|
|||
snapshot_type,
|
||||
accounts: bank.accounts(),
|
||||
epoch_schedule: *bank.epoch_schedule(),
|
||||
rent_collector: bank.rent_collector(),
|
||||
rent_collector: bank.rent_collector().clone(),
|
||||
})
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue