From fc6d45b2d78b7c55a197be80d84f802386dec40c Mon Sep 17 00:00:00 2001 From: Alexander Medvednikov Date: Sat, 2 Jan 2021 19:24:09 +0100 Subject: [PATCH] fmt: fix mut_pos in structs with embeds --- vlib/v/parser/struct.v | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/vlib/v/parser/struct.v b/vlib/v/parser/struct.v index b35ed195f9..7ba4e1b6c7 100644 --- a/vlib/v/parser/struct.v +++ b/vlib/v/parser/struct.v @@ -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