Skip to content

Commit ed700f8

Browse files
committed
Fix MSRV & update changelog
1 parent f763534 commit ed700f8

File tree

4 files changed

+9
-3
lines changed

4 files changed

+9
-3
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,12 @@
33
Newer changelog entries can be found [on
44
GitHub](https://github.com/console-rs/console/releases).
55

6+
## 0.16.0
7+
8+
### Enhancements
9+
10+
* Added `slice_str` util.
11+
612
## 0.15.8
713

814
### Enhancements

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[package]
22
name = "console"
33
description = "A terminal and console abstraction for Rust"
4-
version = "0.15.11"
4+
version = "0.16.0"
55
keywords = ["cli", "terminal", "colors", "console", "ansi"]
66
authors = ["Armin Ronacher <[email protected]>"]
77
license = "MIT"

src/unix_term.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ pub(crate) fn terminal_size(out: &Term) -> Option<(u16, u16)> {
5959
winsize
6060
};
6161
if winsize.ws_row > 0 && winsize.ws_col > 0 {
62-
Some((winsize.ws_row as u16, winsize.ws_col as u16))
62+
Some((winsize.ws_row, winsize.ws_col))
6363
} else {
6464
None
6565
}

src/utils.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -788,7 +788,7 @@ fn str_width(s: &str) -> usize {
788788
}
789789

790790
#[cfg(feature = "ansi-parsing")]
791-
fn char_width(c: char) -> usize {
791+
pub(crate) fn char_width(c: char) -> usize {
792792
#[cfg(feature = "unicode-width")]
793793
{
794794
use unicode_width::UnicodeWidthChar;

0 commit comments

Comments
 (0)