From 00f406753aaf34e34fe22214c5b248dd01ccdb83 Mon Sep 17 00:00:00 2001 From: Matt Joiner Date: Sat, 30 Jul 2016 00:48:15 +1000 Subject: [PATCH] Fix build error with missinggo.Sorted --- client.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client.go b/client.go index 0e0d18eb..5d2c4e02 100644 --- a/client.go +++ b/client.go @@ -149,7 +149,7 @@ func (cl *Client) WriteStatus(_w io.Writer) { } fmt.Fprintf(w, "# Torrents: %d\n", len(cl.Torrents())) fmt.Fprintln(w) - for _, t := range slices.Sorted(cl.Torrents(), func(l, r *Torrent) bool { + for _, t := range slices.Sort(append([]*Torrent(nil), cl.Torrents()...), func(l, r *Torrent) bool { return l.InfoHash().AsString() < r.InfoHash().AsString() }).([]*Torrent) { if t.Name() == "" { -- 2.48.1