mirror of
https://github.com/Xevion/time-banner.git
synced 2025-12-06 01:16:36 -06:00
Use lowercase for environment deserialization
god i hope this is the answer
This commit is contained in:
@@ -8,6 +8,7 @@ pub enum Environment {
|
||||
}
|
||||
|
||||
#[derive(Deserialize, Debug)]
|
||||
#[serde(rename_all = "lowercase")]
|
||||
pub struct Configuration {
|
||||
#[serde(default = "default_env")]
|
||||
pub env: Environment,
|
||||
|
||||
Reference in New Issue
Block a user