Skip to content

Commit

Permalink
Re-enable tests that assume yansi colors.
Browse files Browse the repository at this point in the history
  • Loading branch information
SergioBenitez committed Aug 11, 2023
1 parent 0bf346e commit 006ff74
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions src/global.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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`.
Expand All @@ -27,7 +27,7 @@ pub fn disable() {
///
/// # Example
///
/// ```rust,no_run
/// ```rust
/// use yansi::Paint;
///
/// // With styling disabled, ANSI color codes are _not_ emitted.
Expand Down
4 changes: 2 additions & 2 deletions src/macros.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;"),+)?
Expand Down Expand Up @@ -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;"),+)?
Expand Down
2 changes: 1 addition & 1 deletion src/paint.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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());
Expand Down

0 comments on commit 006ff74

Please sign in to comment.