Skip to content

Commit

Permalink
fix: Fix nit
Browse files Browse the repository at this point in the history
  • Loading branch information
chengr4 committed Aug 27, 2024
1 parent 09c2671 commit f758ef6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/renderer/display_list.rs
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ impl<'a> DisplayList<'a> {
fn get_max_lineno(body: &[DisplaySet<'_>]) -> Option<usize> {
let max_lineno = body.iter().fold(None, |max, set| {
set.display_lines.iter().fold(max, |max, line| match line {
DisplayLine::Source { lineno, .. } => std::cmp::max(max, *lineno),
DisplayLine::Source { lineno, .. } => cmp::max(max, *lineno),
_ => max,
})
});
Expand Down

0 comments on commit f758ef6

Please sign in to comment.