Auto merge of #88516 - matthiaskrgr:clippy_perf_end_august, r=jyn514,GuillaumeGomez
some low hanging clippy::perf fixes
This commit is contained in:
commit
64929313f5
6 changed files with 11 additions and 10 deletions
|
@ -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()
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue