summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthias Beyer <matthias.beyer@ifm.com>2022-07-22 08:23:39 +0200
committerMatthias Beyer <matthias.beyer@ifm.com>2022-08-18 14:46:54 +0200
commite9b759d5b0a5f9a0cfd6fba05a76e4e118b29e52 (patch)
tree6e421d91340fab16139e1bd4c6b84c4d27db2a23
parentdf244b4d4d7e19d09265301610dc8b5d5c7c20c5 (diff)
Fix clippy in c8y_smartrest: Remove let-unit-value
This patch fixes `clippy::let_unit_value`. Signed-off-by: Matthias Beyer <matthias.beyer@ifm.com>
-rw-r--r--crates/core/c8y_smartrest/src/smartrest_deserializer.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/crates/core/c8y_smartrest/src/smartrest_deserializer.rs b/crates/core/c8y_smartrest/src/smartrest_deserializer.rs
index 54e96855..63b031fc 100644
--- a/crates/core/c8y_smartrest/src/smartrest_deserializer.rs
+++ b/crates/core/c8y_smartrest/src/smartrest_deserializer.rs
@@ -57,7 +57,7 @@ impl Default for SmartRestUpdateSoftware {
impl SmartRestUpdateSoftware {
pub fn from_smartrest(&self, smartrest: &str) -> Result<Self, SmartRestDeserializerError> {
let mut message_id = smartrest.to_string();
- let () = message_id.truncate(3);
+ message_id.truncate(3);
let mut rdr = ReaderBuilder::new()
.has_headers(false)
@@ -461,7 +461,7 @@ mod tests {
url: Some("url1".into()),
file_path: None,
}));
- let () = expected_thin_edge_json.add_update(SoftwareModuleUpdate::remove(SoftwareModule {
+ expected_thin_edge_json.add_update(SoftwareModuleUpdate::remove(SoftwareModule {
module_type: Some("".to_string()),
name: "software2".to_string(),
version: None,