diff options
| author | Eskil Queseth <eskilq@kth.se> | 2020-10-17 20:59:25 +0200 |
|---|---|---|
| committer | Eskil Queseth <eskilq@kth.se> | 2020-10-17 20:59:25 +0200 |
| commit | f16f51f5ec41b5a3472f0639bd0324cd339fa21e (patch) | |
| tree | b351720cc440767934a75e55a17ce5dfc7fd768b | |
| parent | 9cfdbf0c68e544dbaa67da7e5620f4099d1c718e (diff) | |
| download | mum-f16f51f5ec41b5a3472f0639bd0324cd339fa21e.tar.gz | |
fix oopsie
| -rw-r--r-- | mumd/src/state.rs | 2 |
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 |
