Panics
This function panics when the static string is a invalid header.
Until Allow panicking in constants makes its way into stable, the panic message at > compile-time is going to look cryptic, but should at least point at your header value:
Steps to reproduce:
checkout latest branch
startup a 3.X.Y lavalink server locally
build example lavalink-basic-bot
It would panic immediately on connect. See attached log of the panic. backtrace.log
Capitalization in a header is illegal and causes the bot to panic. I posted in discord and figured it out shortly after. https://docs.rs/http/latest/http/header/struct.HeaderName.html#method.from_static
Steps to reproduce:
It would panic immediately on connect. See attached log of the panic. backtrace.log