8000 Fix formatting with cargo fmt · console-rs/console@3ca4253 · GitHub
[go: up one dir, main page]

Skip to content 8000

Commit 3ca4253

Browse files
committed
Fix formatting with cargo fmt
1 parent 72aa50e commit 3ca4253

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/utils.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -834,7 +834,8 @@ pub fn truncate_str<'a>(s: &'a str, width: usize, tail: &str) -> Cow<'a, str> {
834834

835835
let mut s_byte = 0;
836836
let mut s_width = 0;
837-
let rest_width = width.saturating_sub(str_width(tail)).saturating_sub(length);
837+
let rest_width =
838+
width.saturating_sub(str_width(tail)).saturating_sub(length);
838839
for c in s.chars() {
839840
s_byte += c.len_utf8();
840841
s_width += char_width(c);

0 commit comments

Comments
 (0)
0