We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2ca7dbb commit a096ff7Copy full SHA for a096ff7
cargo-miri/src/util.rs
@@ -105,10 +105,8 @@ pub fn get_miriflags() -> Vec<String> {
105
if let Ok(a) = env::var("MIRIFLAGS") {
106
// This code is taken from `RUSTFLAGS` handling in cargo.
107
a.split(' ').map(str::trim).filter(|s| !s.is_empty()).map(str::to_string).collect()
108
- } else if let Ok(args) = serde_json::from_str::<Vec<String>>(config_miriflags) {
109
- args
110
} else {
111
- Vec::default()
+ serde_json::from_str::<Vec<String>>(config_miriflags).unwrap_or_default()
112
}
113
114
/// Returns the path to the `miri` binary
0 commit comments