Byte deletion party

This commit is contained in:
Ayaz Hafiz 2022-11-09 09:18:42 -06:00
parent 54f4a70a0b
commit f1180a1549
No known key found for this signature in database
GPG key ID: 0E2A37416A25EF58
6 changed files with 20 additions and 25 deletions

View file

@ -65,7 +65,7 @@ fn headers_from_annotation_help(
ident: symbol,
specializes: _,
} => {
let annotation_index = { let typ = types.from_old_type(&annotation.value); constraints.push_type(types, typ) };
let annotation_index = { let typ = types.from_old_type(annotation.value); constraints.push_type(types, typ) };
let typ = Loc::at(annotation.region, annotation_index);
headers.insert(*symbol, typ);
true
@ -165,7 +165,7 @@ fn headers_from_annotation_help(
&& type_arguments.len() == pat_type_arguments.len()
&& lambda_set_variables.len() == pat_lambda_set_variables.len() =>
{
let annotation_index = { let typ = types.from_old_type( &annotation.value ); constraints.push_type(types, typ) };
let annotation_index = { let typ = types.from_old_type(annotation.value); constraints.push_type(types, typ) };
let typ = Loc::at(annotation.region, annotation_index);
headers.insert(*opaque, typ);