Unnecessary clone

This commit is contained in:
Ayaz Hafiz 2023-04-12 15:37:05 -05:00
parent 8b42300933
commit 70adb39483
No known key found for this signature in database
GPG key ID: 0E2A37416A25EF58

View file

@ -1956,7 +1956,7 @@ fn constrain_function_def(
);
let return_type_annotation_expected = constraints.push_expected_type(FromAnnotation(
loc_pattern.clone(),
loc_pattern,
arity,
AnnotationSource::TypedBody {
region: annotation.region,