Fixing Windows build warnings

This commit is contained in:
João M. Bezerra 2021-04-06 23:16:39 -03:00
parent bb004dc78c
commit 3ac28b8d5c

View File

@ -127,7 +127,7 @@ pub struct Bytes {
} }
/// Module with a list of bright colors. /// Module with a list of bright colors.
#[allow(dead_code, non_upper_case_globals)] #[allow(dead_code)]
#[cfg(target_family = "unix")] #[cfg(target_family = "unix")]
pub mod colors { pub mod colors {
use termion::color::*; use termion::color::*;
@ -161,6 +161,7 @@ pub mod colors {
} }
} }
// Termion does not support Windows // Termion does not support Windows
#[allow(dead_code, non_upper_case_globals)]
#[cfg(not(target_family = "unix"))] #[cfg(not(target_family = "unix"))]
pub mod colors { pub mod colors {
pub fn empty() -> &'static str { pub fn empty() -> &'static str {