1
0
mirror of https://github.com/fafhrd91/actix-web synced 2025-06-25 06:39:22 +02:00

refactor testing utils (#2518)

This commit is contained in:
Rob Ede
2021-12-15 01:44:51 +00:00
committed by GitHub
parent dd4a372613
commit 156cc20ac8
13 changed files with 1043 additions and 928 deletions

View File

@ -264,7 +264,7 @@ impl TestSeqBuffer {
/// Create new empty `TestBuffer` instance.
pub fn empty() -> Self {
Self::new("")
Self::new(BytesMut::new())
}
pub fn read_buf(&self) -> Ref<'_, BytesMut> {