We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 76efd39 commit 4cd3b0bCopy full SHA for 4cd3b0b
compiler/rustc_mir_transform/src/coverage/debug.rs
@@ -199,9 +199,9 @@ impl DebugOptions {
199
200
fn bool_option_val(option: &str, some_strval: Option<&str>) -> bool {
201
if let Some(val) = some_strval {
202
- if vec!["yes", "y", "on", "true"].contains(&val) {
+ if ["yes", "y", "on", "true"].contains(&val) {
203
true
204
- } else if vec!["no", "n", "off", "false"].contains(&val) {
+ } else if ["no", "n", "off", "false"].contains(&val) {
205
false
206
} else {
207
bug!(
0 commit comments