use static arrays instead of vectors
This commit is contained in:
parent
76efd398ba
commit
4cd3b0b71c
1 changed files with 2 additions and 2 deletions
|
@ -199,9 +199,9 @@ impl DebugOptions {
|
||||||
|
|
||||||
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…
Add table
Add a link
Reference in a new issue