style: rustfmt in chat wrap test

This commit is contained in:
Michel de Graaf
2026-08-14 23:55:43 +02:00
parent 0aa6f33572
commit 8128a4cbec
+1 -2
View File
@@ -79,8 +79,7 @@ mod tests {
#[test] #[test]
fn wrap_chat_line_wraps_and_indents() { fn wrap_chat_line_wraps_and_indents() {
let prefix = vec![Span::raw("12:00 "), Span::raw("<bob> ")]; let prefix = vec![Span::raw("12:00 "), Span::raw("<bob> ")];
let lines = let lines = wrap_chat_line(prefix, "abcdefghij", Style::default(), 16);
wrap_chat_line(prefix, "abcdefghij", Style::default(), 16);
// prefix width 12, so 4 text chars per row. // prefix width 12, so 4 text chars per row.
assert_eq!(lines.len(), 3); assert_eq!(lines.len(), 3);
assert_eq!(lines[0].to_string(), "12:00 <bob> abcd"); assert_eq!(lines[0].to_string(), "12:00 <bob> abcd");