From 006ff74fc3ff2c0cd1bf371f407c2ccb338810a4 Mon Sep 17 00:00:00 2001 From: Sergio Benitez Date: Thu, 10 Aug 2023 17:15:09 -0400 Subject: [PATCH] Re-enable tests that assume `yansi` colors. --- src/global.rs | 4 ++-- src/macros.rs | 4 ++-- src/paint.rs | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/global.rs b/src/global.rs index 46adba3..99f13ae 100644 --- a/src/global.rs +++ b/src/global.rs @@ -6,7 +6,7 @@ static ENABLED: AtomicCondition = AtomicCondition::DEFAULT; /// /// # Example /// -/// ```rust,no_run +/// ```rust /// use yansi::Paint; /// /// // With styling enabled, ANSI color codes are emitted, thus `ne`. @@ -27,7 +27,7 @@ pub fn disable() { /// /// # Example /// -/// ```rust,no_run +/// ```rust /// use yansi::Paint; /// /// // With styling disabled, ANSI color codes are _not_ emitted. diff --git a/src/macros.rs b/src/macros.rs index f32e38d..b02760d 100644 --- a/src/macros.rs +++ b/src/macros.rs @@ -36,7 +36,7 @@ macro_rules! constructor { /// /// # Example /// - /// ```rust,no_run + /// ```rust #[doc = concat!( "# let value = yansi::Painted::new(0);", $($("\n# let ", stringify!($a), " = 0;"),+)? @@ -70,7 +70,7 @@ macro_rules! signature { /// /// # Example /// - /// ```rust,no_run + /// ```rust #[doc = concat!( "# let value = yansi::Painted::new(0);", $($("\n# let ", stringify!($a), " = 0;"),+)? diff --git a/src/paint.rs b/src/paint.rs index 4117302..4ddf738 100644 --- a/src/paint.rs +++ b/src/paint.rs @@ -17,7 +17,7 @@ use crate::{Color, Attribute, Quirk, Style, Condition}; /// whether styling sequences are actually emitted: both must evaluated to true. /// Otherwise, no styling sequences are emitted. /// -/// ```rust,no_run +/// ```rust /// use yansi::{Paint, Condition}; /// /// println!("Hello, {}!", "world".red().underline().blink());