all: quieten vet for unkeyed composite literals in test code

This commit is contained in:
Dan Kortschak
2018-09-01 22:40:25 +09:30
committed by Dan Kortschak
parent 3f94af49e6
commit 70492dcef1
6 changed files with 28 additions and 28 deletions

View File

@@ -193,7 +193,7 @@ func (e *edge) SetLabel(l string) {
}
func (e *edge) Attributes() []encoding.Attribute {
return []encoding.Attribute{{"label", e.label}}
return []encoding.Attribute{{Key: "label", Value: e.label}}
}
type attributes map[string]encoding.Attribute