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

Allow Level and LevelFilter to deserialize from the index_variant #405

Merged
merged 3 commits into from
Jul 28, 2020
Merged

Allow Level and LevelFilter to deserialize from the index_variant #405

merged 3 commits into from
Jul 28, 2020

Conversation

diondokter
Copy link
Contributor

This PR allows the Level and LevelFilter enums to deserialize from the index_variant.

This solves jamesmunns/postcard#24.

Postcard is made to serialize into a compact byte representation, so it takes the index_variant that is provided by the Serialize implementation. There was however no way to change that back into the enum.

Copy link
Contributor

@KodrAus KodrAus left a comment

Choose a reason for hiding this comment

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

Thanks @diondokter!

I just had one small comment.

src/serde.rs Outdated Show resolved Hide resolved
Copy link
Contributor

@KodrAus KodrAus left a comment

Choose a reason for hiding this comment

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

Looks good to me!

Thanks @diondokter

@KodrAus KodrAus merged commit ca54ac7 into rust-lang:master Jul 28, 2020
EFanZh pushed a commit to EFanZh/log that referenced this pull request Jul 23, 2023
Bumps [reqwest](https://github.com/seanmonstar/reqwest) from 0.11.11 to 0.11.12.
- [Release notes](https://github.com/seanmonstar/reqwest/releases)
- [Changelog](https://github.com/seanmonstar/reqwest/blob/master/CHANGELOG.md)
- [Commits](seanmonstar/reqwest@v0.11.11...v0.11.12)

---
updated-dependencies:
- dependency-name: reqwest
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
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