refactor: apply review cuts

- replace hand-rolled clamp_cursor_to_char_boundary with
  str::floor_char_boundary at its four call sites, drop the helper
- dedupe the duplicated Layout::vertical constraint arms in render()
- drop stale #[allow(dead_code)] on spinner_state (field is read)
This commit is contained in:
Michel de Graaf
2026-07-20 11:02:43 +02:00
parent 2918b0ce75
commit c463d80b3c
3 changed files with 16 additions and 40 deletions
-1
View File
@@ -21,7 +21,6 @@ pub struct MainTui {
#[allow(dead_code)]
max_concurrent_downloads: usize,
search_timeout: Duration,
#[allow(dead_code)]
spinner_state: usize,
}