1
0
mirror of https://github.com/actix/actix-extras.git synced 2025-06-29 19:24:58 +02:00

calculate prefix dynamicly

This commit is contained in:
Nikolay Kim
2018-07-15 16:24:22 +06:00
parent b759dddf5a
commit 42d3e86941
4 changed files with 38 additions and 37 deletions

View File

@ -543,11 +543,6 @@ mod tests {
err: None,
}
}
fn feed_data(&mut self, data: &'static str) {
let mut b = BytesMut::from(self.buf.as_ref());
b.extend(data.as_bytes());
self.buf = b.take().freeze();
}
}
impl AsyncRead for Buffer {}