(profiles: &[ProviderProfile])
| 5582 | const PROVIDER_PROFILE_DISPLAY_MAX_WIDTH: usize = 40; |
| 5583 | |
| 5584 | fn provider_profile_id_width(profiles: &[ProviderProfile]) -> usize { |
| 5585 | profiles |
| 5586 | .iter() |
| 5587 | .map(|profile| { |
| 5588 | profile |
| 5589 | .id |
| 5590 | .chars() |
| 5591 | .count() |
| 5592 | .min(PROVIDER_PROFILE_ID_MAX_WIDTH) |
| 5593 | }) |
| 5594 | .max() |
| 5595 | .unwrap_or(2) |
| 5596 | .max(2) |
| 5597 | } |
| 5598 | |
| 5599 | fn provider_profile_display_width(profiles: &[ProviderProfile]) -> usize { |
| 5600 | profiles |
no outgoing calls
no test coverage detected