Skip to content

Commit

Permalink
enable miri expect terminal_width
Browse files Browse the repository at this point in the history
  • Loading branch information
Boshen committed Feb 22, 2024
1 parent 3500413 commit 9789631
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/handler.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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()
Expand All @@ -454,7 +454,7 @@ mod syscall {
#[inline]
pub(super) fn supports_color_has_16m() -> Option<bool> {
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)
Expand All @@ -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)
Expand Down

0 comments on commit 9789631

Please sign in to comment.