(profiles: &[ProviderProfile])
| 5597 | } |
| 5598 | |
| 5599 | fn provider_profile_display_width(profiles: &[ProviderProfile]) -> usize { |
| 5600 | profiles |
| 5601 | .iter() |
| 5602 | .map(|profile| { |
| 5603 | profile |
| 5604 | .display_name |
| 5605 | .chars() |
| 5606 | .count() |
| 5607 | .min(PROVIDER_PROFILE_DISPLAY_MAX_WIDTH) |
| 5608 | }) |
| 5609 | .max() |
| 5610 | .unwrap_or(4) |
| 5611 | .max(4) |
| 5612 | } |
| 5613 | |
| 5614 | fn print_provider_type_row(profile: &ProviderProfile, id_width: usize, display_width: usize) { |
| 5615 | let inference = if profile.inference_capable { |
no outgoing calls
no test coverage detected