skoupidi před 2 roky
rodič
revize
40ac6f00a6
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  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?
     }