use static arrays instead of vectors
This commit is contained in:
parent
76efd398ba
commit
4cd3b0b71c
@ -199,9 +199,9 @@ fn from_env() -> Self {
|
|||||||
|
|
||||||
fn bool_option_val(option: &str, some_strval: Option<&str>) -> bool {
|
fn bool_option_val(option: &str, some_strval: Option<&str>) -> bool {
|
||||||
if let Some(val) = some_strval {
|
if let Some(val) = some_strval {
|
||||||
if vec!["yes", "y", "on", "true"].contains(&val) {
|
if ["yes", "y", "on", "true"].contains(&val) {
|
||||||
true
|
true
|
||||||
} else if vec!["no", "n", "off", "false"].contains(&val) {
|
} else if ["no", "n", "off", "false"].contains(&val) {
|
||||||
false
|
false
|
||||||
} else {
|
} else {
|
||||||
bug!(
|
bug!(
|
||||||
|
Loading…
Reference in New Issue
Block a user