1
Fork 0

Rollup merge of #96023 - matthiaskrgr:clippyper1304, r=lcnr

couple of clippy::perf fixes
This commit is contained in:
Dylan DPC 2022-04-16 14:25:56 +02:00 committed by GitHub
commit 91847c43cc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 6 additions and 7 deletions

View file

@ -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
),
));