mirror of https://github.com/fafhrd91/actix-web
make actix_http::ws::Codec::new const
This commit is contained in:
parent
0195824794
commit
06f8940fbd
|
@ -80,7 +80,7 @@ bitflags! {
|
|||
|
||||
impl Codec {
|
||||
/// Create new WebSocket frames decoder.
|
||||
pub fn new() -> Codec {
|
||||
pub const fn new() -> Codec {
|
||||
Codec {
|
||||
max_size: 65_536,
|
||||
flags: Flags::SERVER,
|
||||
|
|
Loading…
Reference in New Issue