diff options
author | Nathan West <Lucretiel@gmail.com> | 2022-08-19 17:35:41 -0400 |
---|---|---|
committer | andy.boot <bootandy@gmail.com> | 2022-08-20 10:50:46 +0100 |
commit | 5fcc45efbef120b3d80f5444f48388b80feb810b (patch) | |
tree | bae54bfe8f97f03727a974e94f6b35acb704e1be | |
parent | 282f6d314dcf54e1fa4c18e5e6e681734ffee785 (diff) |
Use correct error code type
-rw-r--r-- | src/main.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main.rs b/src/main.rs index 0021b08..b940db5 100644 --- a/src/main.rs +++ b/src/main.rs @@ -32,7 +32,7 @@ static DEFAULT_TERMINAL_WIDTH: usize = 80; /// `ansi_term::enable_ansi_support` only exists on Windows; this wrapper /// function makes it available on all platforms #[inline] -fn enable_ansi_support() -> Result<(), i32> { +fn enable_ansi_support() -> Result<(), u32> { #[cfg(windows)] { ansi_term::enable_ansi_support() |