(value: &str, max_width: usize)
| 5627 | } |
| 5628 | |
| 5629 | fn truncate_display(value: &str, max_width: usize) -> String { |
| 5630 | if value.chars().count() <= max_width { |
| 5631 | return value.to_string(); |
| 5632 | } |
| 5633 | |
| 5634 | let keep = max_width.saturating_sub(3); |
| 5635 | let mut truncated = value.chars().take(keep).collect::<String>(); |
| 5636 | truncated.push_str("..."); |
| 5637 | truncated |
| 5638 | } |
| 5639 | |
| 5640 | pub async fn provider_update( |
| 5641 | server: &str, |
no outgoing calls
no test coverage detected