Skip to content

Fix enum matching#121

Merged
hawkw merged 1 commit intomainfrom
ver/enum-matching
Jun 27, 2022
Merged

Fix enum matching#121
hawkw merged 1 commit intomainfrom
ver/enum-matching

Conversation

@olix0r
Copy link
Member

@olix0r olix0r commented Jun 27, 2022

The HTTP type helpers use Into conversion for turning enum variants
into integer values; but these conversions may be ambiguous in some
cases, depending on what types are used in a project.

This change replaces the use of Into with as to reliably convert
these values.

Signed-off-by: Oliver Gould ver@buoyant.io

The HTTP type helpers use `Into` conversion for turning enum variants
into integer values; but these conversions may be ambiguous in some
cases, depending on what types are used in a project.

This change replaces the use of `Into` with `as` to reliably convert
these values.

Signed-off-by: Oliver Gould <ver@buoyant.io>
@hawkw hawkw merged commit 98f0df8 into main Jun 27, 2022
@hawkw hawkw deleted the ver/enum-matching branch June 27, 2022 22:25
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.

3 participants