aboutsummaryrefslogtreecommitdiffstats
path: root/src/protocol.rs
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2019-10-05 06:56:06 -0400
committerJesse Luehrs <doy@tozt.net>2019-10-05 06:56:06 -0400
commitc0d57e5f051fb93473573dd680150ddd41aed396 (patch)
tree4b55bd4b85abc6c0f774901b29505f89ec8ac279 /src/protocol.rs
parent1dbfa1be6fb0fdfcdde43090a2015c8725863f2e (diff)
downloadteleterm-c0d57e5f051fb93473573dd680150ddd41aed396.tar.gz
teleterm-c0d57e5f051fb93473573dd680150ddd41aed396.zip
don't need to presize this vec
Diffstat (limited to 'src/protocol.rs')
-rw-r--r--src/protocol.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/protocol.rs b/src/protocol.rs
index e01fbc7..4f2a317 100644
--- a/src/protocol.rs
+++ b/src/protocol.rs
@@ -650,7 +650,7 @@ mod test {
fn test_read_write_async() {
let (wres, rres) = tokio::sync::mpsc::channel(1);
let wres2 = wres.clone();
- let buf = std::io::Cursor::new(vec![0; 1024]);
+ let buf = std::io::Cursor::new(vec![]);
let msg = Message::login("doy", "screen", (80, 24));
let fut = msg
.write_async(FramedWriter::new(buf))