From 7fbd93302566b19427e2b9432abd2cd131651983 Mon Sep 17 00:00:00 2001 From: Sebastian Thiel Date: Fri, 10 Jul 2020 09:08:54 +0800 Subject: patch bump tui-react --- Cargo.lock | 10 +++++----- tui-react/Cargo.toml | 2 +- tui-react/README.md | 4 +++- tui-react/src/lib.rs | 2 +- 4 files changed, 10 insertions(+), 8 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index e67d2e0..845556b 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -207,7 +207,7 @@ dependencies = [ "flume", "termion", "tui", - "tui-react 0.4.0 (registry+https://github.com/rust-lang/crates.io-index)", + "tui-react 0.4.0", ] [[package]] @@ -245,7 +245,7 @@ dependencies = [ "pretty_assertions", "structopt", "tui", - "tui-react 0.4.0 (registry+https://github.com/rust-lang/crates.io-index)", + "tui-react 0.4.0", "unicode-segmentation", "wild", ] @@ -717,6 +717,8 @@ dependencies = [ [[package]] name = "tui-react" version = "0.4.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c585aaa750085a1eeb4b78cdfdd0306e86e8fb76acc2349a787e70b5ce8413d4" dependencies = [ "log", "tui", @@ -726,9 +728,7 @@ dependencies = [ [[package]] name = "tui-react" -version = "0.4.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c585aaa750085a1eeb4b78cdfdd0306e86e8fb76acc2349a787e70b5ce8413d4" +version = "0.4.1" dependencies = [ "log", "tui", diff --git a/tui-react/Cargo.toml b/tui-react/Cargo.toml index 6782a48..4929d98 100644 --- a/tui-react/Cargo.toml +++ b/tui-react/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "tui-react" -version = "0.4.0" +version = "0.4.1" authors = ["Sebastian Thiel "] edition = "2018" repository = "https://github.com/Byron/dua-cli" diff --git a/tui-react/README.md b/tui-react/README.md index 65231a4..0fe3e09 100644 --- a/tui-react/README.md +++ b/tui-react/README.md @@ -38,4 +38,6 @@ happens with it. ### Changelog -#### v0.2.1 - add license file to crate \ No newline at end of file +#### v0.4.1 - Simplify `block_width(…)` function + +#### v0.2.1 - add license file to crate diff --git a/tui-react/src/lib.rs b/tui-react/src/lib.rs index e841d3b..16370e5 100644 --- a/tui-react/src/lib.rs +++ b/tui-react/src/lib.rs @@ -113,7 +113,7 @@ pub mod util { } pub fn block_width(s: &str) -> u16 { - d.width() as u16 + s.width() as u16 } pub mod rect { -- cgit v1.2.3