1
0
mirror of https://github.com/actix/actix-extras.git synced 2024-11-28 01:32:57 +01:00

Merge branch 'master' into master

This commit is contained in:
Nikolay Kim 2018-02-23 01:47:30 -08:00 committed by GitHub
commit 7a7df7f8fb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -191,7 +191,7 @@ impl Frame {
unsafe{buf.advance_mut(2)};
buf
} else {
let mut buf = BytesMut::with_capacity(p_len + 8);
let mut buf = BytesMut::with_capacity(p_len + 10);
buf.put_slice(&[one, two | 127]);
{
let buf_mut = unsafe{buf.bytes_mut()};