Jing Yang %!s(int64=5) %!d(string=hai) anos
pai
achega
740bc68459
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/network.rs

+ 1 - 1
src/network.rs

@@ -208,7 +208,7 @@ impl Network {
             if network.lock().dispatch(&rpc.client).is_err() {
                 let _ = rpc.reply_channel.send(Err(std::io::Error::new(
                     std::io::ErrorKind::ConnectionReset,
-                    format!("Network connection has been reset."),
+                    "Network connection has been reset.".to_owned(),
                 )));
                 return;
             }