From 2cd56af252c3fbbda1cfc17025e2347eafa04179 Mon Sep 17 00:00:00 2001 From: Timon Post Date: Tue, 8 Jan 2019 07:23:16 -0800 Subject: [PATCH] 5.4 release commit --- Cargo.toml | 2 +- README.md | 2 +- src/kernel/windows_kernel/ansi_support.rs | 4 ++-- src/lib.rs | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index aaf6132..d7009d7 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "crossterm" -version = "0.5.3" +version = "0.5.4" authors = ["T. Post"] description = "An crossplatform terminal library for manipulating terminals." repository = "https://github.com/TimonPost/crossterm" diff --git a/README.md b/README.md index c4048dc..a8f5603 100644 --- a/README.md +++ b/README.md @@ -46,7 +46,7 @@ Add the Crossterm package to your `Cargo.toml` file. ``` [dependencies] -crossterm = "0.5.3" +crossterm = "0.5.4" ``` And import the Crossterm modules you want to use. diff --git a/src/kernel/windows_kernel/ansi_support.rs b/src/kernel/windows_kernel/ansi_support.rs index 1f737c0..9e73b89 100644 --- a/src/kernel/windows_kernel/ansi_support.rs +++ b/src/kernel/windows_kernel/ansi_support.rs @@ -15,8 +15,8 @@ pub fn try_enable_ansi_support() -> bool { ENABLE_ANSI.call_once(|| { let command = EnableAnsiCommand::new(); let success = match command.enable() { - Ok(success) => { success }, - Err(_) => { false }, + Ok(success) => success, + Err(_) => false, }; set_is_windows_ansi_supportable(success); diff --git a/src/lib.rs b/src/lib.rs index c126a21..333c009 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -46,7 +46,7 @@ /// /// ``` /// [dependencies] -/// crossterm = "0.5.3" +/// crossterm = "0.5.4" /// /// ``` /// And import the Crossterm modules you want to use.