瀏覽代碼

chore: clippy

skoupidi 2 年之前
父節點
當前提交
40ac6f00a6
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/rpc/common.rs

+ 1 - 1
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?
     }