make actix_http::ws::Codec::new const

This commit is contained in:
fakeshadow 2021-03-05 02:16:58 +08:00
parent 0195824794
commit 06f8940fbd
1 changed files with 1 additions and 1 deletions

View File

@ -80,7 +80,7 @@ bitflags! {
impl Codec { impl Codec {
/// Create new WebSocket frames decoder. /// Create new WebSocket frames decoder.
pub fn new() -> Codec { pub const fn new() -> Codec {
Codec { Codec {
max_size: 65_536, max_size: 65_536,
flags: Flags::SERVER, flags: Flags::SERVER,