Skip to content

Commit

Permalink
chore: Apply clippy's suggestions
Browse files Browse the repository at this point in the history
  • Loading branch information
Muscraft committed Jan 2, 2024
1 parent ff0c550 commit 929a279
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 @@ -766,7 +766,7 @@ fn format_slice(
has_footer: bool,
margin: Option<Margin>,
) -> Vec<DisplayLine<'_>> {
let main_range = slice.annotations.get(0).map(|x| x.range.0);
let main_range = slice.annotations.first().map(|x| x.range.0);
let origin = slice.origin;
let need_empty_header = origin.is_some() || is_first;
let mut body = format_body(slice, need_empty_header, has_footer, margin);
Expand Down

0 comments on commit 929a279

Please sign in to comment.