aboutsummaryrefslogtreecommitdiffstats
path: root/mumd/src/state.rs
diff options
context:
space:
mode:
authorEskil Queseth <eskilq@kth.se>2020-10-17 20:59:25 +0200
committerEskil Queseth <eskilq@kth.se>2020-10-17 20:59:25 +0200
commitf16f51f5ec41b5a3472f0639bd0324cd339fa21e (patch)
treeb351720cc440767934a75e55a17ce5dfc7fd768b /mumd/src/state.rs
parent9cfdbf0c68e544dbaa67da7e5620f4099d1c718e (diff)
downloadmum-f16f51f5ec41b5a3472f0639bd0324cd339fa21e.tar.gz
fix oopsie
Diffstat (limited to 'mumd/src/state.rs')
-rw-r--r--mumd/src/state.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/mumd/src/state.rs b/mumd/src/state.rs
index 94a0293..2515cb7 100644
--- a/mumd/src/state.rs
+++ b/mumd/src/state.rs
@@ -401,7 +401,7 @@ impl<'a> From<&ProtoTree<'a>> for mumlib::state::Channel {
)
})
.collect::<Vec<_>>();
- children.sort_by_key(|e| (e.0, &e.1.name));
+ children.sort_by_key(|e| (e.0, e.1.name.clone()));
channel.children = children.into_iter().map(|e| e.1).collect();
channel.users = tree.users.iter().map(|e| (*e).into()).collect();
channel