summaryrefslogtreecommitdiffstats
path: root/tui-react
diff options
context:
space:
mode:
Diffstat (limited to 'tui-react')
-rw-r--r--tui-react/Cargo.toml2
-rw-r--r--tui-react/README.md4
-rw-r--r--tui-react/src/lib.rs2
3 files changed, 5 insertions, 3 deletions
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 {