1
0
Fork 0
mirror of https://github.com/actix/actix-web.git synced 2024-12-23 00:26:34 +00:00

make actix_http::ws::Codec::new const (#2043)

This commit is contained in:
fakeshadow 2021-03-04 11:19:01 -08:00 committed by GitHub
parent c1c4400c4a
commit 78384c3ff5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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,