Rollup merge of #96023 - matthiaskrgr:clippyper1304, r=lcnr
couple of clippy::perf fixes
This commit is contained in:
commit
91847c43cc
6 changed files with 6 additions and 7 deletions
|
@ -844,7 +844,7 @@ fn non_exhaustive_match<'p, 'tcx>(
|
|||
format!(
|
||||
"{}{}{} => todo!()",
|
||||
comma,
|
||||
snippet.strip_prefix(",").unwrap_or(&snippet),
|
||||
snippet.strip_prefix(',').unwrap_or(&snippet),
|
||||
pattern
|
||||
),
|
||||
));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue