aboutsummaryrefslogtreecommitdiffstats
path: root/mumd/src
diff options
context:
space:
mode:
Diffstat (limited to 'mumd/src')
-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