Skip to content

Commit

Permalink
style(wincon): Move use to top
Browse files Browse the repository at this point in the history
  • Loading branch information
epage committed Sep 26, 2023
1 parent dc2b916 commit 26a30a0
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions crates/anstyle-wincon/src/stream.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
#[cfg(not(windows))]
use ansi as inner;
#[cfg(windows)]
use wincon as inner;

/// Extend `std::io::Write` with wincon styling
///
/// Generally, you will want to use [`Console`][crate::Console] instead
Expand Down Expand Up @@ -145,8 +150,3 @@ mod ansi {
Ok((None, None))
}
}

#[cfg(not(windows))]
use ansi as inner;
#[cfg(windows)]
use wincon as inner;

0 comments on commit 26a30a0

Please sign in to comment.