aboutsummaryrefslogtreecommitdiff
path: root/src/ls_client.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/ls_client.rs')
-rw-r--r--src/ls_client.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ls_client.rs b/src/ls_client.rs
index f4f72db..9aacab6 100644
--- a/src/ls_client.rs
+++ b/src/ls_client.rs
@@ -424,7 +424,7 @@ impl LightstreamerClient {
}
let encoded_params = serde_urlencoded::to_string(&params)?;
write_stream
- .send(Message::Text(format!("control\r\n{}", encoded_params)))
+ .send(Message::Text(format!("control\r\n{}", encoded_params).into()))
.await?;
info!("Sent subscription request: '{}'", encoded_params);
}
@@ -712,7 +712,7 @@ impl LightstreamerClient {
params.push(("LS_protocol", Self::TLCP_VERSION));
let encoded_params = serde_urlencoded::to_string(&params)?;
write_stream
- .send(Message::Text(format!("create_session\r\n{}\n", encoded_params)))
+ .send(Message::Text(format!("create_session\r\n{}\n", encoded_params).into()))
.await?;
self.make_log( Level::DEBUG, &format!("Sent create session request: '{}'", encoded_params) );
},