Skip to content

Commit

Permalink
!fixup simulation fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
dmkozh committed Dec 11, 2024
1 parent 228dd4f commit 09730e9
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions soroban-simulation/src/snapshot_source.rs
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ enum SnapshotSourceHolder<'a> {
Rc(Rc<dyn SnapshotSource>),
}

impl<'a> SnapshotSource for SnapshotSourceHolder<'a> {
impl SnapshotSource for SnapshotSourceHolder<'_> {
fn get(&self, key: &Rc<LedgerKey>) -> Result<Option<EntryWithLiveUntil>, HostError> {
match self {
SnapshotSourceHolder::Ref(r) => r.get(key),
Expand Down Expand Up @@ -216,7 +216,7 @@ impl<'a, T: SnapshotSourceWithArchive> SimulationSnapshotSourceWithArchive<'a, T
}
}

impl<'a> SnapshotSource for SimulationSnapshotSource<'a> {
impl SnapshotSource for SimulationSnapshotSource<'_> {
fn get(&self, key: &Rc<LedgerKey>) -> Result<Option<EntryWithLiveUntil>, HostError> {
Ok(self
.entry_updater
Expand All @@ -225,8 +225,8 @@ impl<'a> SnapshotSource for SimulationSnapshotSource<'a> {
}
}

impl<'a, T: SnapshotSourceWithArchive> SnapshotSourceWithArchive
for SimulationSnapshotSourceWithArchive<'a, T>
impl<T: SnapshotSourceWithArchive> SnapshotSourceWithArchive
for SimulationSnapshotSourceWithArchive<'_, T>
{
fn get_including_archived(
&self,
Expand Down

0 comments on commit 09730e9

Please sign in to comment.