From aef3f90c5a878239a8cb4fbbe5bac28606261f09 Mon Sep 17 00:00:00 2001 From: Thom Chiovoloni Date: Sat, 27 Jan 2024 15:34:39 -0800 Subject: [PATCH] Simplify color-eyre initialization --- cargo-pgrx/src/main.rs | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/cargo-pgrx/src/main.rs b/cargo-pgrx/src/main.rs index 13c90de49..9566a77c3 100644 --- a/cargo-pgrx/src/main.rs +++ b/cargo-pgrx/src/main.rs @@ -63,13 +63,7 @@ impl CommandExecute for CargoSubcommands { fn main() -> color_eyre::Result<()> { let stderr_is_tty = io::stderr().is_terminal(); env::initialize(); - color_eyre::config::HookBuilder::default() - .theme(if stderr_is_tty { - color_eyre::config::Theme::new() - } else { - color_eyre::config::Theme::default() - }) - .install()?; + color_eyre::config::HookBuilder::default().theme(color_eyre::config::Theme::new()).install()?; let cargo_cli = CargoCommand::parse();