Skip to content

Commit f758ef6

Browse files
committed
fix: Fix nit
1 parent 09c2671 commit f758ef6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/renderer/display_list.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ impl<'a> DisplayList<'a> {
147147
fn get_max_lineno(body: &[DisplaySet<'_>]) -> Option<usize> {
148148
let max_lineno = body.iter().fold(None, |max, set| {
149149
set.display_lines.iter().fold(max, |max, line| match line {
150-
DisplayLine::Source { lineno, .. } => std::cmp::max(max, *lineno),
150+
DisplayLine::Source { lineno, .. } => cmp::max(max, *lineno),
151151
_ => max,
152152
})
153153
});

0 commit comments

Comments
 (0)