From 520595114963e5251bf7d26d5056230cdce7ec98 Mon Sep 17 00:00:00 2001 From: Moritz Poldrack Date: Sat, 25 Jun 2022 00:26:26 +0200 Subject: lint: fix composite literal using unkeyed fields Fix the following go vet error: # git.sr.ht/~rjarry/aerc/worker/notmuch worker/notmuch/worker.go:86:19: git.sr.ht/~rjarry/aerc/worker/types.Done composite literal uses unkeyed fields Signed-off-by: Moritz Poldrack Acked-by: Robin Jarry Acked-by: Tim Culverhouse --- worker/notmuch/worker.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'worker/notmuch') diff --git a/worker/notmuch/worker.go b/worker/notmuch/worker.go index c1426f2..51e8298 100644 --- a/worker/notmuch/worker.go +++ b/worker/notmuch/worker.go @@ -83,7 +83,7 @@ func (w *worker) Run() { } func (w *worker) done(msg types.WorkerMessage) { - w.w.PostMessage(&types.Done{types.RespondTo(msg)}, nil) + w.w.PostMessage(&types.Done{Message: types.RespondTo(msg)}, nil) } func (w *worker) err(msg types.WorkerMessage, err error) { -- cgit v1.2.3