summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSebastian Thiel <sebastian.thiel@icloud.com>2020-07-10 09:08:54 +0800
committerSebastian Thiel <sebastian.thiel@icloud.com>2020-07-10 09:09:46 +0800
commit7fbd93302566b19427e2b9432abd2cd131651983 (patch)
treec8da3c9b660cb525c73e210d56ff6e7c1269558f
parent97022961a0d7f65c605f71f764b766b29866c4c7 (diff)
patch bump tui-reacttui-react-v0.4.1
-rw-r--r--Cargo.lock10
-rw-r--r--tui-react/Cargo.toml2
-rw-r--r--tui-react/README.md4
-rw-r--r--tui-react/src/lib.rs2
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 <sthiel@thoughtworks.com>"]
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 {