(configured: Option<&str>, registered: &str)
| 408 | } |
| 409 | |
| 410 | fn server_urls_match(configured: Option<&str>, registered: &str) -> bool { |
| 411 | configured |
| 412 | .map(|url| url.trim_end_matches('/') == registered.trim_end_matches('/')) |
| 413 | .unwrap_or(false) |
| 414 | } |
| 415 | |
| 416 | /// Derive a short profile name from a server URL. |
| 417 | /// |
no outgoing calls
no test coverage detected