Skip to content

Conversation

@ascjones
Copy link
Contributor

@ascjones ascjones commented Feb 2, 2021

Convert to use new decode feature in scale-info for environments where decoding is enabled, which removes the hacky string parameterization. See paritytech/scale-info#59

todo

@ascjones ascjones marked this pull request as ready for review February 5, 2021 15:46
@ascjones ascjones requested a review from dvdplm February 5, 2021 15:46

impl Encode for DefaultByteGetter {
fn encode_to<W: Output>(&self, dest: &mut W) {
fn encode_to<W: Output + ?Sized>(&self, dest: &mut W) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do you know what lies behind the relaxed bounds requirement here, i.e. ?Sized? I know it came with scale 2.0 but I'm hazy on why.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So that the output can be unsized. So you could for example have some boxed output.

@ascjones ascjones merged commit be8092d into main Feb 11, 2021
@ascjones ascjones deleted the aj-scale-info-decode-feature branch February 11, 2021 09:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants