We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
skip
Instead of taking Option<u32> in this case
Option<u32>
async fn get_taxi_avail(client: <AClient, skip: Option<u32>) -> LTAResult<Vec<Coordinates>> { build_req_with_skip::<TaxiAvailResp, _, _>(client, api_url!("/Taxi-Availability"), skip).await }
We can change the skip to impl Into<Option<u32>>.
impl Into<Option<u32>>
async fn get_taxi_avail(client: <AClient, skip: impl Into<Option<u32>>) -> LTAResult<Vec<Coordinates>> { build_req_with_skip::<TaxiAvailResp, _, _>(client, api_url!("/Taxi-Availability"), skip).await }
This allows you to call it like this.
let _ = get_taxi_avail(&client, 500); let _ = get_taxi_avail(&client, None);
The text was updated successfully, but these errors were encountered:
Bus::get_arrival
No branches or pull requests
Instead of taking
Option<u32>
in this caseWe can change the skip to
impl Into<Option<u32>>
.This allows you to call it like this.
The text was updated successfully, but these errors were encountered: