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

Zero sized types #121

Merged
merged 6 commits into from
Jun 8, 2020
Merged

Zero sized types #121

merged 6 commits into from
Jun 8, 2020

Conversation

dvc94ch
Copy link
Contributor

@dvc94ch dvc94ch commented Jun 4, 2020

No description provided.

@ascjones
Copy link
Contributor

ascjones commented Jun 8, 2020

Can you describe briefly what this fix was about?

@dvc94ch
Copy link
Contributor Author

dvc94ch commented Jun 8, 2020

Using a zero sized type like () is ok, it's not an error. For our identity module, we set the System AccountData type to (). This causes with_system to fail because it tries to register AccountData with a zero value.

src/events.rs Show resolved Hide resolved
src/lib.rs Outdated Show resolved Hide resolved
Copy link
Contributor

@ascjones ascjones left a comment

Choose a reason for hiding this comment

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

LGTM

@ascjones ascjones merged commit 91203b9 into paritytech:master Jun 8, 2020
@ascjones ascjones mentioned this pull request Jun 25, 2020
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.

2 participants