(configured: Option<&str>, registered: &str)
| 428 | } |
| 429 | |
| 430 | fn server_urls_match(configured: Option<&str>, registered: &str) -> bool { |
| 431 | configured |
| 432 | .map(|url| url.trim_end_matches('/') == registered.trim_end_matches('/')) |
| 433 | .unwrap_or(false) |
| 434 | } |
| 435 | |
| 436 | /// Derive a short profile name from a server URL. |
| 437 | /// |
no outgoing calls
no test coverage detected