fmt: fix mut_pos in structs with embeds

pull/7755/head^2
Alexander Medvednikov 2021-01-02 19:24:09 +01:00
parent 38c764f0ce
commit fc6d45b2d7
1 changed files with 3 additions and 3 deletions

View File

@ -307,9 +307,9 @@ fn (mut p Parser) struct_decl() ast.StructDecl {
is_pub: is_pub
fields: ast_fields
pos: start_pos.extend_with_last_line(name_pos, last_line)
mut_pos: mut_pos
pub_pos: pub_pos
pub_mut_pos: pub_mut_pos
mut_pos: mut_pos - embeds.len
pub_pos: pub_pos - embeds.len
pub_mut_pos: pub_mut_pos - embeds.len
language: language
is_union: is_union
attrs: attrs