clone less

This commit is contained in:
Matthias Krüger 2023-11-03 13:20:11 +01:00
parent 49112241e9
commit 1ba97cb1cc
4 changed files with 76 additions and 82 deletions

View file

@ -856,7 +856,7 @@ impl<'a, 'tcx> Builder<'a, 'tcx> {
}
PatKind::InlineConstant { ref subpattern, .. } => {
self.visit_primary_bindings(subpattern, pattern_user_ty.clone(), f)
self.visit_primary_bindings(subpattern, pattern_user_ty, f)
}
PatKind::Leaf { ref subpatterns } => {