mirror of
https://github.com/fafhrd91/actix-web
synced 2025-08-27 23:45:53 +02:00
refactor testing utils (#2518)
This commit is contained in:
@@ -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> {
|
||||
|
Reference in New Issue
Block a user