Derive Copy for Environment

This commit is contained in:
Luc Perkins 2024-05-16 15:05:11 -03:00
parent c1c6574b30
commit 1eb6003444
No known key found for this signature in database
GPG key ID: 16DB1108FB591835
2 changed files with 2 additions and 2 deletions

View file

@ -1,6 +1,6 @@
use std::fmt::{self, Display};
#[derive(Clone)]
#[derive(Clone, Copy)]
pub enum Environment {
GitHubActions,
GitLabCI,

View file

@ -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());