remove unnecessary clone (#17559)

This commit is contained in:
Jeff Washington (jwash)
2021-05-28 10:30:01 -05:00
committed by GitHub
parent 55c22d3b76
commit 1d02dba06f

View File

@ -4537,10 +4537,7 @@ impl Bank {
} }
pub fn get_snapshot_storages(&self) -> SnapshotStorages { pub fn get_snapshot_storages(&self) -> SnapshotStorages {
self.rc self.rc.get_snapshot_storages(self.slot())
.get_snapshot_storages(self.slot())
.into_iter()
.collect()
} }
#[must_use] #[must_use]