From 929a279ec4fbd97f3d828369aa0e5ba697f2de00 Mon Sep 17 00:00:00 2001 From: Scott Schafer Date: Tue, 2 Jan 2024 14:14:52 -0700 Subject: [PATCH] chore: Apply clippy's suggestions --- src/renderer/display_list.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/renderer/display_list.rs b/src/renderer/display_list.rs index 02e14a5..e7784db 100644 --- a/src/renderer/display_list.rs +++ b/src/renderer/display_list.rs @@ -766,7 +766,7 @@ fn format_slice( has_footer: bool, margin: Option, ) -> Vec> { - 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);