1
Fork 0

Auto merge of #88516 - matthiaskrgr:clippy_perf_end_august, r=jyn514,GuillaumeGomez

some low hanging clippy::perf fixes
This commit is contained in:
bors 2021-09-02 10:27:44 +00:00
commit 64929313f5
6 changed files with 11 additions and 10 deletions

View file

@ -664,7 +664,7 @@ impl ToJson for SanitizerSet {
self.into_iter()
.map(|v| Some(v.as_str()?.to_json()))
.collect::<Option<Vec<_>>>()
.unwrap_or(Vec::new())
.unwrap_or_default()
.to_json()
}
}