(endpoint: Option<&str>)
| 347 | |
| 348 | #[cfg(feature = "telemetry")] |
| 349 | fn telemetry_endpoint_from(endpoint: Option<&str>) -> Option<String> { |
| 350 | let endpoint = endpoint.unwrap_or(DEFAULT_ENDPOINT); |
| 351 | let endpoint = endpoint.trim(); |
| 352 | if endpoint.is_empty() { |
| 353 | None |
| 354 | } else { |
| 355 | Some(endpoint.to_string()) |
| 356 | } |
| 357 | } |
| 358 | |
| 359 | #[cfg(feature = "telemetry")] |
| 360 | fn timestamp() -> String { |
no test coverage detected