diff options
author | Matthias Beyer <matthias.beyer@ifm.com> | 2022-07-22 08:23:38 +0200 |
---|---|---|
committer | Matthias Beyer <matthias.beyer@ifm.com> | 2022-08-18 14:46:54 +0200 |
commit | df244b4d4d7e19d09265301610dc8b5d5c7c20c5 (patch) | |
tree | c80db4d1abf295c4d25b3e8a2f0799e63fc76c5c | |
parent | 242258c22064bf2efc7c09368346c916e810e216 (diff) |
Fix clippy in c8y_api: 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_api/src/http_proxy.rs | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/crates/core/c8y_api/src/http_proxy.rs b/crates/core/c8y_api/src/http_proxy.rs index 3d1288d6..83d9b6bf 100644 --- a/crates/core/c8y_api/src/http_proxy.rs +++ b/crates/core/c8y_api/src/http_proxy.rs @@ -157,8 +157,7 @@ impl C8yMqttJwtTokenRetriever { #[async_trait] impl C8yJwtTokenRetriever for C8yMqttJwtTokenRetriever { async fn get_jwt_token(&mut self) -> Result<SmartRestJwtResponse, SMCumulocityMapperError> { - let () = self - .mqtt_con + self.mqtt_con .published .publish(mqtt_channel::Message::new( &Topic::new_unchecked("c8y/s/uat"), @@ -237,7 +236,7 @@ impl JwtAuthHttpProxy { let mut mqtt_con = Connection::new(&mqtt_config).await?; // Ignore errors on this connection - let () = mqtt_con.errors.close(); + mqtt_con.errors.close(); let jwt_token_retriver = Box::new(C8yMqttJwtTokenRetriever::new(mqtt_con)); |