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

Implement TypeInfo for Arc #180

Merged
merged 5 commits into from
May 15, 2023
Merged

Conversation

koute
Copy link
Contributor

@koute koute commented May 15, 2023

I'd like to replace a Box in one of the structs which implements TypeInfo with an Arc, but TypeInfo is not implemented for Arc, so let's make it that it is.

@koute koute requested review from ascjones and SkymanOne May 15, 2023 11:48
type Identity = T;

fn type_info() -> Type {
Self::Identity::type_info()
Copy link
Member

Choose a reason for hiding this comment

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

We may want to revisit the idea of adding some extra information about transparent wrapper types like this, e.g. for Box to avoid https://github.com/paritytech/subxt/blob/c08eb6c8f1ae1ea61964196733008cc3a4bfb627/codegen/src/types/composite_def.rs#L307

@koute koute merged commit 152ef28 into paritytech:master May 15, 2023
2 checks passed
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.

None yet

4 participants