Skip to content

Commit

Permalink
Fix type annotations for MultiIndex prefixes
Browse files Browse the repository at this point in the history
  • Loading branch information
maurolacy committed Feb 14, 2022
1 parent 8097aac commit c295fe7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/storage-plus/src/indexes/multi.rs
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,7 @@ where
T: Serialize + DeserializeOwned + Clone,
IK: PrimaryKey<'a> + Prefixer<'a>,
{
pub fn prefix(&self, p: IK) -> Prefix<PK, T> {
pub fn prefix(&self, p: IK) -> Prefix<PK, T, PK> {
Prefix::with_deserialization_functions(
self.idx_namespace,
&p.prefix(),
Expand All @@ -260,7 +260,7 @@ where
)
}

pub fn sub_prefix(&self, p: IK::Prefix) -> Prefix<PK, T> {
pub fn sub_prefix(&self, p: IK::Prefix) -> Prefix<PK, T, (IK::Suffix, PK)> {
Prefix::with_deserialization_functions(
self.idx_namespace,
&p.prefix(),
Expand Down

0 comments on commit c295fe7

Please sign in to comment.