minor improvements

This commit is contained in:
Anton-4 2024-07-08 14:11:22 +02:00
parent 2cad4b3e21
commit 6b2d2e3406
No known key found for this signature in database
GPG key ID: 0971D718C0A9B937
2 changed files with 8 additions and 3 deletions

View file

@ -1293,8 +1293,11 @@ impl<'a> Defs<'a> {
value_def: ValueDef<'a>,
region: Region,
) {
// split() converts `EitherIndex<TypeDef<'a>, ValueDef<'a>>` to:
// `Result<Index<TypeDef<'a>>, Index<ValueDef<'a>>>`
//
match self.tags[tag_index].split() {
Ok(_) => {
Ok(_type_index) => {
self.remove_tag(tag_index);
self.push_value_def(value_def, region, &[], &[]);
}