skoupidi 2 anni fa
parent
commit
40ac6f00a6
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  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?
     }