From 97896318f0734ac8fe76d9448da273332f95844f Mon Sep 17 00:00:00 2001 From: Boshen Date: Thu, 22 Feb 2024 16:03:07 +0800 Subject: [PATCH] enable miri expect terminal_width --- src/handler.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/handler.rs b/src/handler.rs index 0e90bc3..95382c0 100644 --- a/src/handler.rs +++ b/src/handler.rs @@ -431,7 +431,7 @@ mod syscall { #[inline] pub(super) fn supports_hyperlinks() -> bool { cfg_if! { - if #[cfg(any(feature = "fancy-no-syscall", miri))] { + if #[cfg(feature = "fancy-no-syscall")] { false } else { supports_hyperlinks::on(supports_hyperlinks::Stream::Stderr) @@ -443,7 +443,7 @@ mod syscall { #[inline] pub(super) fn supports_color() -> bool { cfg_if! { - if #[cfg(any(feature = "fancy-no-syscall", miri))] { + if #[cfg(feature = "fancy-no-syscall")] { false } else { supports_color::on(supports_color::Stream::Stderr).is_some() @@ -454,7 +454,7 @@ mod syscall { #[inline] pub(super) fn supports_color_has_16m() -> Option { cfg_if! { - if #[cfg(any(feature = "fancy-no-syscall", miri))] { + if #[cfg(feature = "fancy-no-syscall")] { None } else { supports_color::on(supports_color::Stream::Stderr).map(|color| color.has_16m) @@ -465,7 +465,7 @@ mod syscall { #[inline] pub(super) fn supports_unicode() -> bool { cfg_if! { - if #[cfg(any(feature = "fancy-no-syscall", miri))] { + if #[cfg(feature = "fancy-no-syscall")] { false } else { supports_unicode::on(supports_unicode::Stream::Stderr)