Skip to content

Commit

Permalink
remove Qa env (#74)
Browse files Browse the repository at this point in the history
  • Loading branch information
cpiemontese authored Sep 22, 2023
1 parent f17f5f3 commit 3dbd9fd
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/config/environment.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ use std::{
#[derive(Eq, PartialEq, Debug, Clone, Copy)]
pub enum Environment {
Dev,
Qa,
Staging,
Production,
}
Expand All @@ -18,7 +17,6 @@ impl FromStr for Environment {
fn from_str(s: &str) -> Result<Self, Self::Err> {
match s {
"dev" => Ok(Self::Dev),
"qa" => Ok(Self::Qa),
"staging" => Ok(Self::Staging),
"production" => Ok(Self::Production),
_ => Err(EnvironmentParseError(s.to_string())),
Expand All @@ -30,7 +28,6 @@ impl Display for Environment {
fn fmt(&self, f: &mut Formatter<'_>) -> std::fmt::Result {
let str = match self {
Self::Dev => "dev",
Self::Qa => "qa",
Self::Staging => "staging",
Self::Production => "production",
};
Expand All @@ -44,7 +41,7 @@ pub struct EnvironmentParseError(String);
impl Display for EnvironmentParseError {
fn fmt(&self, f: &mut Formatter<'_>) -> std::fmt::Result {
f.write_fmt(format_args!(
"{} is not a valid environment string. Allowed strings are 'dev', 'qa', 'staging' and 'production'.",
"{} is not a valid environment string. Allowed strings are 'dev', 'staging' and 'production'.",
&self.0
))
}
Expand Down

0 comments on commit 3dbd9fd

Please sign in to comment.