Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Rename
  • Loading branch information
harupy committed Oct 23, 2023
commit d00e7ffe1b13de2e3ca18e69a43bbcdaa802ae6e
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ impl AlwaysFixableViolation for DictGetWithNoneDefault {
}
}

fn lowercase_allowed(env_var: &str) -> bool {
fn is_lowercase_allowed(env_var: &str) -> bool {
matches!(env_var, "https_proxy" | "http_proxy" | "no_proxy")
Comment thread
konstin marked this conversation as resolved.
}

Expand Down Expand Up @@ -154,7 +154,7 @@ pub(crate) fn use_capital_environment_variables(checker: &mut Checker, expr: &Ex
return;
}

if lowercase_allowed(env_var) {
if is_lowercase_allowed(env_var) {
return;
}

Expand Down Expand Up @@ -203,7 +203,7 @@ fn check_os_environ_subscript(checker: &mut Checker, expr: &Expr) {
return;
};

if lowercase_allowed(env_var) {
if is_lowercase_allowed(env_var) {
return;
}

Expand Down