Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make Const* types Clone+Default and fix Debug #744

Merged
merged 4 commits into from
Apr 28, 2023
Merged

Conversation

ggwpez
Copy link
Member

@ggwpez ggwpez commented Apr 27, 2023

This is needed for paritytech/polkadot-sdk#185 to make the GenesisConfig print- and clonable.

Changes:

  • Properly impl std-Debug for Const* types to also print the value, otherwise it just prints the type name.
  • Derive Clone and Default (default not really needed, just for completeness).

TODO:

  • Changelog
  • Bump version. 0.1.6 I assume?

Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>
@ggwpez ggwpez requested a review from mrcnski April 28, 2023 11:10
@ggwpez ggwpez merged commit 4bcc5b2 into master Apr 28, 2023
6 checks passed
@ggwpez ggwpez deleted the oty-impl-traits branch April 28, 2023 11:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants