(mut items: Vec<String>)
| 1140 | } |
| 1141 | |
| 1142 | fn dedup_sort(mut items: Vec<String>) -> Vec<String> { |
| 1143 | items.retain(|item| !item.trim().is_empty()); |
| 1144 | items.sort_by(|a, b| a.to_ascii_lowercase().cmp(&b.to_ascii_lowercase())); |
| 1145 | items.dedup_by(|a, b| a.eq_ignore_ascii_case(b)); |
| 1146 | items |
| 1147 | } |
| 1148 | |
| 1149 | fn inset_horizontal(area: Rect, padding: u16) -> Rect { |
| 1150 | if area.width <= padding.saturating_mul(2) { |
no test coverage detected