aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLibravatar Silas Bartha <silas@exvacuum.dev>2024-12-24 22:11:21 -0500
committerLibravatar Silas Bartha <silas@exvacuum.dev>2024-12-24 22:11:21 -0500
commit3c6c63005e5faf306f4de2b3c730813b3a05d630 (patch)
tree42e65624db77916a4eed02a8cac6621e322347fb /src
parent2a28303b84bcfa24dc1ae000d55b0eb2edc7ca7d (diff)
Added minor versions to dependencies to avoid breaking changes, fixed some type mismatch errorsv0.1.10main
Diffstat (limited to 'src')
-rw-r--r--src/error.rs1
-rw-r--r--src/ls_client.rs4
-rw-r--r--src/main.rs2
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(&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) );
},
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(&not_available).clone();
+ let value = update.get_value(field).unwrap_or(&not_available);
let value_str = if update.changed_fields.contains_key(field) {
value.yellow().to_string()
} else {