Derive Copy for Environment
This commit is contained in:
parent
c1c6574b30
commit
1eb6003444
|
@ -1,6 +1,6 @@
|
|||
use std::fmt::{self, Display};
|
||||
|
||||
#[derive(Clone)]
|
||||
#[derive(Clone, Copy)]
|
||||
pub enum Environment {
|
||||
GitHubActions,
|
||||
GitLabCI,
|
||||
|
|
|
@ -161,7 +161,7 @@ async fn main_cli() -> Result<()> {
|
|||
let args = Args::parse();
|
||||
let environment = env::Environment::determine();
|
||||
tracing::debug!("Running in {}", environment.to_string());
|
||||
args.validate(environment.clone())?;
|
||||
args.validate(environment)?;
|
||||
|
||||
let metrics = Arc::new(telemetry::TelemetryReport::new());
|
||||
|
||||
|
|
Loading…
Reference in a new issue