Conversation
A speculative PR to see whether I can remove some `HasCompact::Type: TypeInfo` bounds I had to add to some impls in substrate.
|
Yeah so this is what I had in my very first implementation. I was wary about it mostly because I had a poor understanding of what When a type is If this works for substrate then I'm all for it. |
I'll leave this here as a draft for now, and come back to it once the substrate PR is in a good state, and maybe explore other ways to get around having those bounds. And consider whether this is philosophically/practically the right approach. |
Removes the requirement for
HasCompact::Type: TypeInfobounds I had to add to some impls in substrate, see them removed in this commit paritytech/substrate@7da3bb8.It does this by just registering
Tfor a compact field in aCompact<T>. This relies on the fact that the blanket impl always hasType = Compact<T>.@dvdplm maybe you already tried this as part of #53 and decided against it.