Skip to content

Commit

Permalink
target_os instead of target, fix #86
Browse files Browse the repository at this point in the history
  • Loading branch information
o2sh committed Oct 28, 2019
1 parent d548783 commit 941a830
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -78,10 +78,10 @@ enum InfoFields {
}

fn main() -> Result<()> {
#[cfg(target = "windows")]
#[cfg(target_os = "windows")]
let enabled = ansi_term::enable_ansi_support().is_ok();

#[cfg(not(target = "windows"))]
#[cfg(not(target_os = "windows"))]
let enabled = true;

if enabled {
Expand Down

0 comments on commit 941a830

Please sign in to comment.