diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/error.rs | 1 | ||||
-rw-r--r-- | src/ls_client.rs | 4 | ||||
-rw-r--r-- | src/main.rs | 2 |
3 files changed, 3 insertions, 4 deletions
diff --git a/src/error.rs b/src/error.rs index 0888818..33c6ff8 100644 --- a/src/error.rs +++ b/src/error.rs @@ -1,6 +1,5 @@ use std::error::Error; use std::fmt; -use tracing::error; #[derive(Debug)] pub struct IllegalArgumentException(String); 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(¶ms)?; 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(¶ms)?; 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) ); }, diff --git a/src/main.rs b/src/main.rs index 2da215c..32e85e8 100644 --- a/src/main.rs +++ b/src/main.rs @@ -63,7 +63,7 @@ impl SubscriptionListener for MySubscriptionListener { ]; let mut output = String::new(); for field in fields { - let value = update.get_value(field).unwrap_or(¬_available).clone(); + let value = update.get_value(field).unwrap_or(¬_available); let value_str = if update.changed_fields.contains_key(field) { value.yellow().to_string() } else { |