From 9208c47d23309f2faaeae32729b1b6d89d893faf Mon Sep 17 00:00:00 2001 From: Brian Date: Thu, 26 Oct 2023 15:11:22 +0200 Subject: [PATCH] Replace `is_terminal` with `std::io::IsTerminal` --- CHANGELOG.md | 1 + Cargo.lock | 1 - Cargo.toml | 1 - examples/simple_datagram_based_logger.rs | 3 +-- 4 files changed, 2 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 2002b5a..08be2e4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -10,6 +10,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Added the Cargo.lock file to the git repo See: https://blog.rust-lang.org/2023/08/29/committing-lockfiles.html - Upgrade dependencies +- Replace `is-terminal` dep with `std::io::IsTerminal` ## [0.3.1] - 2023-05-01 diff --git a/Cargo.lock b/Cargo.lock index bfd613f..2455d8b 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -497,7 +497,6 @@ dependencies = [ "chrono", "dhat", "env_logger", - "is-terminal", "log", "parking_lot", ] diff --git a/Cargo.toml b/Cargo.toml index 9beebe4..b096113 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -22,7 +22,6 @@ arrayvec = "0.7.4" assert_matches = "1.5.0" dhat = "0.3.2" env_logger = "0.10.0" -is-terminal = "0.4.7" log = "0.4.20" parking_lot = "0.12.1" diff --git a/examples/simple_datagram_based_logger.rs b/examples/simple_datagram_based_logger.rs index f502105..604645d 100644 --- a/examples/simple_datagram_based_logger.rs +++ b/examples/simple_datagram_based_logger.rs @@ -10,12 +10,11 @@ fn main() -> io::Result<()> { #[cfg(unix)] mod unix { use std::{ - io::{self, Write}, + io::{self, IsTerminal, Write}, os::unix::net::UnixDatagram, }; use arrayvec::ArrayVec; - use is_terminal::IsTerminal; use parking_lot::Mutex; use syslog_fmt::{ v5424::{self, Timestamp},