mirror of
https://github.com/figsoda/mmtc
synced 2024-11-25 08:30:18 +00:00
pre allocate
This commit is contained in:
parent
56c0ec1b7b
commit
a69bf02dba
1 changed files with 1 additions and 1 deletions
|
@ -81,7 +81,7 @@ impl Client {
|
|||
if buf != b"OK MPD " {
|
||||
bail!("server did not greet with a success");
|
||||
}
|
||||
cl.read_line(&mut String::new()).await?;
|
||||
cl.read_line(&mut String::with_capacity(8)).await?;
|
||||
|
||||
Ok(Client(cl))
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue