Skip to content

Commit a5eb99a

Browse files
committed
Fix warnings from a previous PR
1 parent 63a9e3c commit a5eb99a

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

cloudflare-examples/src/main.rs

+3-5
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ extern crate clap;
44
extern crate cloudflare;
55

66
use clap::{App, AppSettings, Arg, ArgMatches, SubCommand};
7-
use cloudflare::endpoints::{dns, workers, zone, account};
7+
use cloudflare::endpoints::{account, dns, workers, zone};
88
use cloudflare::framework::{
99
apiclient::ApiClient,
1010
auth::Credentials,
@@ -135,10 +135,8 @@ fn list_routes<ApiClientType: ApiClient>(arg_matches: &ArgMatches, api_client: &
135135
print_response_json(response);
136136
}
137137

138-
fn list_accounts<ApiClientType: ApiClient>(arg_matches: &ArgMatches, api_client: &ApiClientType) {
139-
let usage = "usage: list_accounts";
140-
141-
let response = api_client.request(&account::ListAccounts { params: None,});
138+
fn list_accounts<ApiClientType: ApiClient>(_arg_matches: &ArgMatches, api_client: &ApiClientType) {
139+
let response = api_client.request(&account::ListAccounts { params: None });
142140

143141
print_response_json(response);
144142
}

0 commit comments

Comments
 (0)