Skip to content

Commit 4cd3b0b

Browse files
committed
use static arrays instead of vectors
1 parent 76efd39 commit 4cd3b0b

File tree

1 file changed

+2
-2
lines changed
  • compiler/rustc_mir_transform/src/coverage

1 file changed

+2
-2
lines changed

compiler/rustc_mir_transform/src/coverage/debug.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -199,9 +199,9 @@ impl DebugOptions {
199199

200200
fn bool_option_val(option: &str, some_strval: Option<&str>) -> bool {
201201
if let Some(val) = some_strval {
202-
if vec!["yes", "y", "on", "true"].contains(&val) {
202+
if ["yes", "y", "on", "true"].contains(&val) {
203203
true
204-
} else if vec!["no", "n", "off", "false"].contains(&val) {
204+
} else if ["no", "n", "off", "false"].contains(&val) {
205205
false
206206
} else {
207207
bug!(

0 commit comments

Comments
 (0)