const fn for `StatusCode::as_u16`
y-haidar opened this issue · 1 comments
y-haidar commented
Are there plans for this? Would like to use it in constant generics.
Lines 119 to 121 in bda9320
Change to this:
pub const fn as_u16(&self) -> u16 {
(*self).0.get()
}
WhyNotHugo commented
See: #680