From 3ca4253043138f6894dba5843808b1b03189d34b Mon Sep 17 00:00:00 2001 From: Dirkjan Ochtman Date: Mon, 17 Mar 2025 09:36:21 +0100 Subject: [PATCH] Fix formatting with cargo fmt --- src/utils.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/utils.rs b/src/utils.rs index 11d885a2..0a64be0a 100644 --- a/src/utils.rs +++ b/src/utils.rs @@ -834,7 +834,8 @@ pub fn truncate_str<'a>(s: &'a str, width: usize, tail: &str) -> Cow<'a, str> { let mut s_byte = 0; let mut s_width = 0; - let rest_width = width.saturating_sub(str_width(tail)).saturating_sub(length); + let rest_width = + width.saturating_sub(str_width(tail)).saturating_sub(length); for c in s.chars() { s_byte += c.len_utf8(); s_width += char_width(c);