From 8879d9848ca4856aad54d27be8ee5eeca40beebc Mon Sep 17 00:00:00 2001 From: petr-tik Date: Tue, 8 Feb 2022 20:38:53 +0000 Subject: [PATCH] Derive the same traits in the same order types --- src/cargo/ops/cargo_config.rs | 2 +- src/cargo/ops/tree/mod.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/cargo/ops/cargo_config.rs b/src/cargo/ops/cargo_config.rs index 34c191ae8cf..5f0fe9987dc 100644 --- a/src/cargo/ops/cargo_config.rs +++ b/src/cargo/ops/cargo_config.rs @@ -10,7 +10,7 @@ use std::borrow::Cow; use std::fmt; use std::str::FromStr; -#[derive(clap::ArgEnum, Clone)] +#[derive(clap::ArgEnum, Copy, Clone)] pub enum ConfigFormat { Toml, Json, diff --git a/src/cargo/ops/tree/mod.rs b/src/cargo/ops/tree/mod.rs index eee4f1099b1..4d6a8daa11a 100644 --- a/src/cargo/ops/tree/mod.rs +++ b/src/cargo/ops/tree/mod.rs @@ -86,7 +86,7 @@ impl FromStr for Charset { } } -#[derive(clap::ArgEnum, Clone, Copy)] +#[derive(clap::ArgEnum, Copy, Clone)] pub enum Prefix { None, Indent,