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

@@ -27,7 +27,7 @@ func (e *edgeWithPorts) ToPort() (string, string) {
func ExamplePorter() {
g := simple.NewUndirectedGraph()
g.SetEdge(&edgeWithPorts{
Edge: simple.Edge{simple.Node(1), simple.Node(0)},
Edge: simple.Edge{F: simple.Node(1), T: simple.Node(0)},
fromPort: "p1",
toPort: "p2",
})