Skip to content

Commit

Permalink
Use allow(dead_code) with not used variables
Browse files Browse the repository at this point in the history
  • Loading branch information
ndelvalle committed Jul 14, 2024
1 parent bff71ef commit ace5f12
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/settings.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@ pub struct Auth {
pub secret: String,
}

// Remove the #[allow(dead_code)] attribute from the Settings struct when all the fields are being
// used.
#[allow(dead_code)]
#[derive(Debug, Clone, Deserialize)]
pub struct Settings {
pub environment: String,
Expand Down

0 comments on commit ace5f12

Please sign in to comment.