Skip to content

Commit

Permalink
fetch & fetchpost: apply clippy::ref_option suggestion to cached …
Browse files Browse the repository at this point in the history
…functions
  • Loading branch information
jqnatividad committed Oct 6, 2024
1 parent baa479b commit 927f1e2
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 16 deletions.
16 changes: 8 additions & 8 deletions src/cmd/fetch.rs
Original file line number Diff line number Diff line change
Expand Up @@ -798,7 +798,7 @@ pub fn run(argv: &[&str]) -> CliResult<()> {
&url,
&client,
&limiter,
&jql_selector,
jql_selector.as_ref(),
args.flag_store_error,
args.flag_pretty,
include_existing_columns,
Expand All @@ -816,7 +816,7 @@ pub fn run(argv: &[&str]) -> CliResult<()> {
&url,
&client,
&limiter,
&jql_selector,
jql_selector.as_ref(),
args.flag_store_error,
args.flag_pretty,
include_existing_columns,
Expand All @@ -838,7 +838,7 @@ pub fn run(argv: &[&str]) -> CliResult<()> {
&url,
&client,
&limiter,
&jql_selector,
jql_selector.as_ref(),
args.flag_store_error,
args.flag_pretty,
include_existing_columns,
Expand Down Expand Up @@ -878,7 +878,7 @@ pub fn run(argv: &[&str]) -> CliResult<()> {
&url,
&client,
&limiter,
&jql_selector,
jql_selector.as_ref(),
args.flag_store_error,
args.flag_pretty,
include_existing_columns,
Expand Down Expand Up @@ -1025,7 +1025,7 @@ fn get_cached_response(
url: &str,
client: &reqwest::blocking::Client,
limiter: &governor::RateLimiter<NotKeyed, InMemoryState, DefaultClock, NoOpMiddleware>,
flag_jql: &Option<String>,
flag_jql: Option<&String>,
flag_store_error: bool,
flag_pretty: bool,
include_existing_columns: bool,
Expand Down Expand Up @@ -1073,7 +1073,7 @@ fn get_diskcache_response(
url: &str,
client: &reqwest::blocking::Client,
limiter: &governor::RateLimiter<NotKeyed, InMemoryState, DefaultClock, NoOpMiddleware>,
flag_jql: &Option<String>,
flag_jql: Option<&String>,
flag_store_error: bool,
flag_pretty: bool,
include_existing_columns: bool,
Expand Down Expand Up @@ -1123,7 +1123,7 @@ fn get_redis_response(
url: &str,
client: &reqwest::blocking::Client,
limiter: &governor::RateLimiter<NotKeyed, InMemoryState, DefaultClock, NoOpMiddleware>,
flag_jql: &Option<String>,
flag_jql: Option<&String>,
flag_store_error: bool,
flag_pretty: bool,
include_existing_columns: bool,
Expand Down Expand Up @@ -1170,7 +1170,7 @@ fn get_response(
url: &str,
client: &reqwest::blocking::Client,
limiter: &governor::RateLimiter<NotKeyed, InMemoryState, DefaultClock, NoOpMiddleware>,
flag_jql: &Option<String>,
flag_jql: Option<&String>,
flag_store_error: bool,
flag_pretty: bool,
include_existing_columns: bool,
Expand Down
16 changes: 8 additions & 8 deletions src/cmd/fetchpost.rs
Original file line number Diff line number Diff line change
Expand Up @@ -725,7 +725,7 @@ pub fn run(argv: &[&str]) -> CliResult<()> {
&form_body_jsonmap,
&client,
&limiter,
&jql_selector,
jql_selector.as_ref(),
args.flag_store_error,
args.flag_pretty,
args.flag_compress,
Expand All @@ -745,7 +745,7 @@ pub fn run(argv: &[&str]) -> CliResult<()> {
&form_body_jsonmap,
&client,
&limiter,
&jql_selector,
jql_selector.as_ref(),
args.flag_store_error,
args.flag_pretty,
args.flag_compress,
Expand All @@ -769,7 +769,7 @@ pub fn run(argv: &[&str]) -> CliResult<()> {
&form_body_jsonmap,
&client,
&limiter,
&jql_selector,
jql_selector.as_ref(),
args.flag_store_error,
args.flag_pretty,
args.flag_compress,
Expand Down Expand Up @@ -811,7 +811,7 @@ pub fn run(argv: &[&str]) -> CliResult<()> {
&form_body_jsonmap,
&client,
&limiter,
&jql_selector,
jql_selector.as_ref(),
args.flag_store_error,
args.flag_pretty,
args.flag_compress,
Expand Down Expand Up @@ -961,7 +961,7 @@ fn get_cached_response(
form_body_jsonmap: &serde_json::Map<String, Value>,
client: &reqwest::blocking::Client,
limiter: &governor::RateLimiter<NotKeyed, InMemoryState, DefaultClock, NoOpMiddleware>,
flag_jql: &Option<String>,
flag_jql: Option<&String>,
flag_store_error: bool,
flag_pretty: bool,
flag_compress: bool,
Expand Down Expand Up @@ -1013,7 +1013,7 @@ fn get_diskcache_response(
form_body_jsonmap: &serde_json::Map<String, Value>,
client: &reqwest::blocking::Client,
limiter: &governor::RateLimiter<NotKeyed, InMemoryState, DefaultClock, NoOpMiddleware>,
flag_jql: &Option<String>,
flag_jql: Option<&String>,
flag_store_error: bool,
flag_pretty: bool,
flag_compress: bool,
Expand Down Expand Up @@ -1067,7 +1067,7 @@ fn get_redis_response(
form_body_jsonmap: &serde_json::Map<String, Value>,
client: &reqwest::blocking::Client,
limiter: &governor::RateLimiter<NotKeyed, InMemoryState, DefaultClock, NoOpMiddleware>,
flag_jql: &Option<String>,
flag_jql: Option<&String>,
flag_store_error: bool,
flag_pretty: bool,
flag_compress: bool,
Expand Down Expand Up @@ -1098,7 +1098,7 @@ fn get_response(
form_body_jsonmap: &serde_json::Map<String, Value>,
client: &reqwest::blocking::Client,
limiter: &governor::RateLimiter<NotKeyed, InMemoryState, DefaultClock, NoOpMiddleware>,
flag_jql: &Option<String>,
flag_jql: Option<&String>,
flag_store_error: bool,
flag_pretty: bool,
flag_compress: bool,
Expand Down

0 comments on commit 927f1e2

Please sign in to comment.