satisfy lint

This commit is contained in:
nyx 2024-10-01 21:31:18 -04:00
parent 23f5d45307
commit 06f3f0f269
No known key found for this signature in database
GPG Key ID: 9924455A3BB7D06C

View File

@ -27,8 +27,8 @@ pub fn create_shortcut_list(
shortcuts: impl IntoIterator<Item = Shortcut>,
render_width: u16,
) -> Box<[Line<'static>]> {
let hints = shortcuts.into_iter().collect::<Box<[Shortcut]>>();
let shortcut_spans: Vec<Vec<Span<'static>>> = hints.iter().map(|h| h.to_spans()).collect();
let shortcut_spans: Vec<Vec<Span<'static>>> =
shortcuts.into_iter().map(|h| h.to_spans()).collect();
let max_shortcut_width = shortcut_spans
.iter()