From da89256ffb5d2ecfc027377eff9bc6954f3d7311 Mon Sep 17 00:00:00 2001 From: Luna Razzaghipour Date: Wed, 5 Jan 2022 09:33:44 +0000 Subject: [PATCH] Remove unneeded references in Clap derive (#98) I think this failed to compile when we were still using StructOpt, but it works now. --- crates/pipes-rs/src/config.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/crates/pipes-rs/src/config.rs b/crates/pipes-rs/src/config.rs index 17f7ccd..a69c5dc 100644 --- a/crates/pipes-rs/src/config.rs +++ b/crates/pipes-rs/src/config.rs @@ -11,11 +11,11 @@ use std::time::Duration; #[clap(name = "pipes-rs", version)] pub struct Config { /// what kind of terminal coloring to use - #[clap(short, long, possible_values = &["ansi", "rgb", "none"])] + #[clap(short, long, possible_values = ["ansi", "rgb", "none"])] pub color_mode: Option, /// the color palette used assign colors to pipes - #[clap(long, possible_values = &["default", "darker", "pastel", "matrix"])] + #[clap(long, possible_values = ["default", "darker", "pastel", "matrix"])] pub palette: Option, /// delay between frames in milliseconds @@ -31,11 +31,11 @@ pub struct Config { pub kinds: Option, /// whether to use bold - #[clap(short, long, possible_values = &["true", "false"], value_name = "BOOL")] + #[clap(short, long, possible_values = ["true", "false"], value_name = "BOOL")] pub bold: Option, /// whether pipes should retain style after hitting the edge - #[clap(short, long, possible_values = &["true", "false"], value_name = "BOOL")] + #[clap(short, long, possible_values = ["true", "false"], value_name = "BOOL")] pub inherit_style: Option, /// number of pipes