You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Current prefix and sub_prefix of MultiIndex don't correctly use Prefix and SubPrefix type bound, resulting in unexpected behavior when using struct that utilize all of prefix, sub prefix, suffix, super suffix. For example, triple element tuple.
let f:MultiIndex<(u32,u64,u128),(u32,u64,u128),u128> =
MultiIndex::new(|e| (e.0, e.1, e.2),"pk","idx");
f.prefix((1,2));// expected tuple `(u32, u64, u128)` found tuple `(u32, u64)`
f.sub_prefix(1u32);// expected tuple `(u32, u64)` found type `u32`
Current
prefix
andsub_prefix
of MultiIndex don't correctly use Prefix and SubPrefix type bound, resulting in unexpected behavior when using struct that utilize all of prefix, sub prefix, suffix, super suffix. For example, triple element tuple.Original interface
Correct Interface
The text was updated successfully, but these errors were encountered: