mirror of
https://github.com/gonum/gonum.git
synced 2025-10-06 15:47:01 +08:00
all: quieten vet for unkeyed composite literals in test code
This commit is contained in:

committed by
Dan Kortschak

parent
3f94af49e6
commit
70492dcef1
@@ -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
|
||||
|
Reference in New Issue
Block a user