remove couple redundant clones

This commit is contained in:
Matthias Krüger 2024-09-28 13:42:37 +02:00
parent 150247c338
commit e174b92cb4
2 changed files with 2 additions and 2 deletions

View file

@ -1027,7 +1027,7 @@ impl<'p, 'tcx: 'p> PatCx for RustcPatCtxt<'p, 'tcx> {
// Point at this range.
first_range: thir_pat.span,
// That's the gap that isn't covered.
max: gap_as_pat.to_string(),
max: gap_as_pat,
// Suggest `lo..=max` instead.
suggestion: suggested_range,
},