use static arrays instead of vectors

This commit is contained in:
Matthias Krüger 2023-08-19 18:49:58 +02:00
parent 76efd398ba
commit 4cd3b0b71c

View File

@ -199,9 +199,9 @@ fn from_env() -> Self {
fn bool_option_val(option: &str, some_strval: Option<&str>) -> bool {
if let Some(val) = some_strval {
if vec!["yes", "y", "on", "true"].contains(&val) {
if ["yes", "y", "on", "true"].contains(&val) {
true
} else if vec!["no", "n", "off", "false"].contains(&val) {
} else if ["no", "n", "off", "false"].contains(&val) {
false
} else {
bug!(