Skip to content

Commit

Permalink
style: set_colors_enabled for good measure in wide_element_style
Browse files Browse the repository at this point in the history
  • Loading branch information
chris-laplante committed May 17, 2024
1 parent 344d71a commit 79e47d7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/style.rs
Original file line number Diff line number Diff line change
Expand Up @@ -779,7 +779,8 @@ mod tests {

use super::*;
use crate::state::{AtomicPosition, ProgressState};
use console::colors_enabled;

use console::set_colors_enabled;
use std::sync::Mutex;

#[test]
Expand Down Expand Up @@ -865,7 +866,6 @@ mod tests {

#[test]
fn test_expand_template_flags() {
use console::set_colors_enabled;
set_colors_enabled(true);

const WIDTH: u16 = 80;
Expand Down Expand Up @@ -926,7 +926,7 @@ mod tests {

#[test]
fn wide_element_style() {
println!("colors_enabled: {}", colors_enabled());
set_colors_enabled(true);

const CHARS: &str = "=>-";
const WIDTH: u16 = 8;
Expand Down

0 comments on commit 79e47d7

Please sign in to comment.