Skip to content

Commit

Permalink
Make top-level range work for tuples
Browse files Browse the repository at this point in the history
  • Loading branch information
maurolacy committed Apr 16, 2021
1 parent 88bd267 commit 84389c2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/storage-plus/src/indexes.rs
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ impl<'a, K, T> MultiIndex<'a, K, T>
where
T: Serialize + DeserializeOwned + Clone,
K: PrimaryKey<'a>,
K::Prefix: EmptyPrefix,
K::SubPrefix: EmptyPrefix,
{
// I would prefer not to copy code from Prefix, but no other way
// with lifetimes (create Prefix inside function and return ref = no no)
Expand All @@ -197,7 +197,7 @@ where
where
T: 'c,
{
self.prefix(K::Prefix::new()).range(store, min, max, order)
self.sub_prefix(K::SubPrefix::new()).range(store, min, max, order)
}
}

Expand Down

0 comments on commit 84389c2

Please sign in to comment.