Skip to content

Commit

Permalink
feat: fix clippy error messages
Browse files Browse the repository at this point in the history
  • Loading branch information
vitorfdl committed Jun 17, 2024
1 parent f4c48b2 commit 13f4cf1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/schema/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ impl Mqtt {
}

#[derive(serde::Deserialize)]
#[allow(dead_code)]
pub struct PublishRequest {
pub topic: String,
pub message: String,
Expand Down
2 changes: 2 additions & 0 deletions src/services/mqttrelay.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,9 @@ use tokio::{
time::{sleep, Duration},
};
const BACKOFF_MAX_RETRIES: u32 = 20;

#[derive(Deserialize)]
#[allow(dead_code)]
pub struct PublishMessage {
pub topic: String,
pub message: String,
Expand Down

0 comments on commit 13f4cf1

Please sign in to comment.