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:
@ -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 {
|
||||
|
Reference in New Issue
Block a user