Fix build error with missinggo.Sorted

This commit is contained in:
Matt Joiner 2016-07-30 00:48:15 +10:00
parent 534275b625
commit 00f406753a
1 changed files with 1 additions and 1 deletions

View File

@ -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() == "" {