summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--tui-react/src/lib.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/tui-react/src/lib.rs b/tui-react/src/lib.rs
index 991e396..e0537a4 100644
--- a/tui-react/src/lib.rs
+++ b/tui-react/src/lib.rs
@@ -82,11 +82,11 @@ pub fn draw_text_without_ellipsis_nowrap<'a>(
) -> u16 {
let s = style.into();
let t = text.as_ref();
- let mut graphemes = t.graphemes(true);
+ let graphemes = t.graphemes(true);
let mut total_width = 0;
{
let mut x_offset = 0;
- for (g, mut x) in graphemes.by_ref().zip(bound.left()..bound.right()) {
+ for (g, mut x) in graphemes.zip(bound.left()..bound.right()) {
let width = g.width();
total_width += width;