diff options
author | Moritz Poldrack <git@moritz.sh> | 2022-06-25 00:26:26 +0200 |
---|---|---|
committer | Robin Jarry <robin@jarry.cc> | 2022-06-26 11:23:21 +0200 |
commit | 520595114963e5251bf7d26d5056230cdce7ec98 (patch) | |
tree | bd5beb01d2ab188af79b0d59997a5b22975b9026 /worker/notmuch/worker.go | |
parent | 1d68e1d14feba877eaf65d0a37bdb9992db25d7b (diff) | |
download | aerc-520595114963e5251bf7d26d5056230cdce7ec98.tar.gz |
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 <git@moritz.sh>
Acked-by: Robin Jarry <robin@jarry.cc>
Acked-by: Tim Culverhouse <tim@timculverhouse.com>
Diffstat (limited to 'worker/notmuch/worker.go')
-rw-r--r-- | worker/notmuch/worker.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/worker/notmuch/worker.go b/worker/notmuch/worker.go index c1426f28..51e82984 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) { |