From d56221deaee43a34e9dc50d2bdb9a5bf93b0bd1c Mon Sep 17 00:00:00 2001 From: AsafMah Date: Thu, 23 Feb 2023 12:11:52 +0200 Subject: [PATCH] Clippy --- azure-kusto-data/src/operations/async_deserializer.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/azure-kusto-data/src/operations/async_deserializer.rs b/azure-kusto-data/src/operations/async_deserializer.rs index 2465892..2e7d935 100644 --- a/azure-kusto-data/src/operations/async_deserializer.rs +++ b/azure-kusto-data/src/operations/async_deserializer.rs @@ -14,7 +14,7 @@ async fn deserialize_single( reader: &mut (impl AsyncBufRead + Send + Unpin), buf: &mut Vec, ) -> io::Result { - buf.resize(0, 0); + buf.clear(); let size = reader.read_until(b'\n', buf).await?; return Ok(serde_json::from_slice(&buf[..size - 1])?); }