Skip to content

Commit dd83908

Browse files
committed
fix lint again
1 parent 90c8963 commit dd83908

1 file changed

Lines changed: 8 additions & 2 deletions

File tree

frontends/rioterm/src/renderer/island.rs

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1062,7 +1062,10 @@ mod tests {
10621062

10631063
#[test]
10641064
fn title_fits_is_returned_unchanged() {
1065-
assert_eq!(fit_title_with_widths("hello", 10.0, fixed_unit_width), "hello");
1065+
assert_eq!(
1066+
fit_title_with_widths("hello", 10.0, fixed_unit_width),
1067+
"hello"
1068+
);
10661069
assert_eq!(fit_title_with_widths("hi", 2.0, fixed_unit_width), "hi");
10671070
}
10681071

@@ -1072,7 +1075,10 @@ mod tests {
10721075
// full title fits, the returned Cow must stay Borrowed so the
10731076
// render loop doesn't allocate a new String every frame.
10741077
let out = fit_title_with_widths("ok", 10.0, fixed_unit_width);
1075-
assert!(matches!(out, Cow::Borrowed(_)), "expected borrowed, got {out:?}");
1078+
assert!(
1079+
matches!(out, Cow::Borrowed(_)),
1080+
"expected borrowed, got {out:?}"
1081+
);
10761082
}
10771083

10781084
#[test]

0 commit comments

Comments
 (0)