Use correct error code type

This commit is contained in:
Nathan West
2022-08-19 17:35:41 -04:00
committed by andy.boot
parent 282f6d314d
commit 5fcc45efbe
+1 -1
View File
@@ -32,7 +32,7 @@ static DEFAULT_TERMINAL_WIDTH: usize = 80;
/// `ansi_term::enable_ansi_support` only exists on Windows; this wrapper /// `ansi_term::enable_ansi_support` only exists on Windows; this wrapper
/// function makes it available on all platforms /// function makes it available on all platforms
#[inline] #[inline]
fn enable_ansi_support() -> Result<(), i32> { fn enable_ansi_support() -> Result<(), u32> {
#[cfg(windows)] #[cfg(windows)]
{ {
ansi_term::enable_ansi_support() ansi_term::enable_ansi_support()