mirror of
https://github.com/actix/actix-web.git
synced 2025-01-08 16:25:29 +00:00
make actix_http::ws::Codec::new const (#2043)
This commit is contained in:
parent
c1c4400c4a
commit
78384c3ff5
1 changed files with 1 additions and 1 deletions
|
@ -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,
|
||||||
|
|
Loading…
Reference in a new issue