From 40ac6f00a60477b55b016ca96d09a4eff3cf5969 Mon Sep 17 00:00:00 2001 From: skoupidi Date: Fri, 9 Aug 2024 16:36:04 +0300 Subject: [PATCH] chore: clippy --- src/rpc/common.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rpc/common.rs b/src/rpc/common.rs index ca6041cc3..e8d36bcb7 100644 --- a/src/rpc/common.rs +++ b/src/rpc/common.rs @@ -82,7 +82,7 @@ pub(super) async fn write_to_stream( }; // As we're a line-based protocol, we append CRLF to the end of the JSON string. - for i in [object_str.as_bytes(), &[b'\r', b'\n']] { + for i in [object_str.as_bytes(), b"\r\n"] { writer.write_all(i).await? }