Skip to content

Commit

Permalink
persistence: fix invalid interface abtreaction in MemStash::impl_for
Browse files Browse the repository at this point in the history
Closes #263
  • Loading branch information
dr-orlovsky committed Aug 30, 2024
1 parent 91a3c41 commit bd38d22
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/persistence/memory.rs
Original file line number Diff line number Diff line change
Expand Up @@ -192,8 +192,8 @@ impl StashReadProvider for MemStash {
.values()
.find(|iimpl| C::IFACE_IDS.contains(&iimpl.iface_id))
.or_else(|| {
schema_ifaces.iimpls.keys().find_map(|id| {
let iface = self.iface(id.clone()).ok()?;
C::IFACE_IDS.iter().find_map(|id| {
let iface = self.iface(*id).ok()?;

Check warning on line 196 in src/persistence/memory.rs

View check run for this annotation

Codecov / codecov/patch

src/persistence/memory.rs#L195-L196

Added lines #L195 - L196 were not covered by tests
iface.find_abstractable_impl(schema_ifaces)
})
})
Expand Down

0 comments on commit bd38d22

Please sign in to comment.