diff --git a/vlib/v/ast/ast.v b/vlib/v/ast/ast.v index 699fb00b5a..ab63b56be4 100644 --- a/vlib/v/ast/ast.v +++ b/vlib/v/ast/ast.v @@ -28,7 +28,6 @@ pub type ScopeObject = ConstField | GlobalField | Var // TOOD: replace table.Param pub type Node = ConstField | EnumField | Expr | Field | File | GlobalField | IfBranch | MatchBranch | ScopeObject | SelectBranch | Stmt | StructField | StructInitField | table.Param - pub struct Type { pub: diff --git a/vlib/v/fmt/fmt.v b/vlib/v/fmt/fmt.v index 3dd91638c1..ba5aa22754 100644 --- a/vlib/v/fmt/fmt.v +++ b/vlib/v/fmt/fmt.v @@ -574,7 +574,9 @@ pub fn (mut f Fmt) type_decl(node ast.TypeDecl) { if i < sum_type_names.len - 1 { f.write(' | ') } - f.wrap_long_line(2, true) + if i < sum_type_names.len - 1 { + f.wrap_long_line(2, true) + } } // f.write(sum_type_names.join(' | ')) comments << node.comments