From c4355c1d6fc8aa33d35a881a6fb04c0db3dc4839 Mon Sep 17 00:00:00 2001 From: Karl Meakin Date: Sun, 17 Sep 2023 22:10:31 +0100 Subject: [PATCH] Remove dependency on `is-terminal` crate. Since Rust version `1.70.0`, the trait `std::io::IsTerminal` has been available that does the same thing. --- Cargo.toml | 2 -- src/handlers/theme.rs | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index dd6e584..c1520d2 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -19,7 +19,6 @@ once_cell = "1.8.0" unicode-width = "0.1.9" owo-colors = { version = "3.0.0", optional = true } -is-terminal = { version = "0.4.0", optional = true } textwrap = { version = "0.15.0", optional = true } supports-hyperlinks = { version = "2.0.0", optional = true } supports-color = { version = "2.0.0", optional = true } @@ -48,7 +47,6 @@ default = [] no-format-args-capture = [] fancy-no-backtrace = [ "owo-colors", - "is-terminal", "textwrap", "terminal_size", "supports-hyperlinks", diff --git a/src/handlers/theme.rs b/src/handlers/theme.rs index 1f5236a..222802b 100644 --- a/src/handlers/theme.rs +++ b/src/handlers/theme.rs @@ -1,5 +1,5 @@ -use is_terminal::IsTerminal; use owo_colors::Style; +use std::io::IsTerminal; /** Theme used by [`GraphicalReportHandler`](crate::GraphicalReportHandler) to