(future: F)
| 459 | } |
| 460 | |
| 461 | fn client_runtime_block_on<F, T>(future: F) -> Result<T, ApiError> |
| 462 | where |
| 463 | F: std::future::Future<Output = Result<T, ApiError>>, |
| 464 | { |
| 465 | tokio::runtime::Runtime::new() |
| 466 | .map_err(ApiError::from)? |
| 467 | .block_on(future) |
| 468 | } |
| 469 | |
| 470 | fn load_saved_oauth_token() -> Result<Option<OAuthTokenSet>, ApiError> { |
| 471 | let token_set = load_oauth_credentials().map_err(ApiError::from)?; |
no outgoing calls
no test coverage detected