1
0
mirror of https://github.com/fafhrd91/actix-web synced 2025-07-01 00:44:26 +02:00

Use .advance() intead of .split_to()

This commit is contained in:
Nikolay Kim
2019-12-19 09:56:14 +06:00
parent 1732ae8c79
commit 8c54054844
4 changed files with 8 additions and 8 deletions

View File

@ -1,6 +1,6 @@
use std::convert::TryFrom;
use bytes::{BufMut, BytesMut};
use bytes::{Buf, BufMut, BytesMut};
use log::debug;
use rand;
@ -108,7 +108,7 @@ impl Parser {
}
// remove prefix
let _ = src.split_to(idx);
src.advance(idx);
// no need for body
if length == 0 {