We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
StatusCode::as_u16
Are there plans for this? Would like to use it in constant generics.
http/src/status.rs
Lines 119 to 121 in bda9320
Change to this:
pub const fn as_u16(&self) -> u16 { (*self).0.get() }
The text was updated successfully, but these errors were encountered:
Allow using StatusCode::as_u16 in const contexts
4b8cc85
Fixes: hyperium#665
See: #680
Sorry, something went wrong.
No branches or pull requests
Are there plans for this? Would like to use it in constant generics.
http/src/status.rs
Lines 119 to 121 in bda9320
Change to this:
The text was updated successfully, but these errors were encountered: