Explorar o código

chore: clippy

skoupidi %!s(int64=2) %!d(string=hai) anos
pai
achega
40ac6f00a6
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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?
     }