From ace5f12316e153820b028adc378e5757c176a1d7 Mon Sep 17 00:00:00 2001 From: Nicolas del Valle Date: Sun, 14 Jul 2024 13:22:49 +0800 Subject: [PATCH] Use allow(dead_code) with not used variables --- src/settings.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/settings.rs b/src/settings.rs index c2057a9..fe6f44d 100644 --- a/src/settings.rs +++ b/src/settings.rs @@ -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,