From 1a99dc71c8aafa7d00b5686dcde1fd39af74b601 Mon Sep 17 00:00:00 2001 From: yanghong Date: Sun, 23 Jul 2023 10:19:20 +0800 Subject: [PATCH] fix ref --- src/client.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/client.rs b/src/client.rs index 190a3a71..10f741a1 100644 --- a/src/client.rs +++ b/src/client.rs @@ -449,7 +449,7 @@ impl ControlChannel { let s = toml::to_string(&self.service).unwrap(); let buf = s.as_bytes(); conn.write_u32(buf.len() as u32).await?; - conn.write_all(&buf).await?; + conn.write_all(buf).await?; conn.flush().await?; } v => {