Skip to content

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.

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] <[email protected]>

Signed-off-by: dependabot[bot] <[email protected]>
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