diff options
| author | Matthias Krüger <matthias.krueger@famsik.de> | 2023-08-19 18:49:58 +0200 |
|---|---|---|
| committer | Matthias Krüger <matthias.krueger@famsik.de> | 2023-08-19 18:49:58 +0200 |
| commit | 4cd3b0b71ca1bcabb3b6ff7be6410d96356d9768 (patch) | |
| tree | 34a4eae6cf00a43e6d144a48305c32952c1f5b29 /compiler/rustc_mir_transform/src/coverage/debug.rs | |
| parent | 76efd398ba5a75247f4ba7e4508a246473ba9940 (diff) | |
| download | rust-4cd3b0b71ca1bcabb3b6ff7be6410d96356d9768.tar.gz rust-4cd3b0b71ca1bcabb3b6ff7be6410d96356d9768.zip | |
use static arrays instead of vectors
Diffstat (limited to 'compiler/rustc_mir_transform/src/coverage/debug.rs')
| -rw-r--r-- | compiler/rustc_mir_transform/src/coverage/debug.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/rustc_mir_transform/src/coverage/debug.rs b/compiler/rustc_mir_transform/src/coverage/debug.rs index d2c0c4ba069..083f1f8aef6 100644 --- a/compiler/rustc_mir_transform/src/coverage/debug.rs +++ b/compiler/rustc_mir_transform/src/coverage/debug.rs @@ -199,9 +199,9 @@ impl DebugOptions { 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!( |
