diff options
author | metamuffin <metamuffin@disroot.org> | 2024-10-15 11:07:22 +0200 |
---|---|---|
committer | metamuffin <metamuffin@disroot.org> | 2024-10-15 11:07:22 +0200 |
commit | 15c6522b369f20dacac10db56bc4b145354c05c9 (patch) | |
tree | f5379d2439287fc7b2200886dda6a57facc8eb2b /server/src/commands.rs | |
parent | 06175a4514c55b8161e767f094a2e514debb88de (diff) | |
download | hurrycurry-15c6522b369f20dacac10db56bc4b145354c05c9.tar hurrycurry-15c6522b369f20dacac10db56bc4b145354c05c9.tar.bz2 hurrycurry-15c6522b369f20dacac10db56bc4b145354c05c9.tar.zst |
remove paragraph from /top list
Diffstat (limited to 'server/src/commands.rs')
-rw-r--r-- | server/src/commands.rs | 24 |
1 files changed, 11 insertions, 13 deletions
diff --git a/server/src/commands.rs b/server/src/commands.rs index 08b521ad..86a3de15 100644 --- a/server/src/commands.rs +++ b/server/src/commands.rs @@ -289,19 +289,17 @@ impl Server { .iter() .take(5) .enumerate() - .map(|(place, entry)| DocumentElement::Par { - es: vec![DocumentElement::Text { - s: trm!( - "c.menu.scoreboard.entry", - s = place.to_string(), - s = entry.score.points.to_string(), - s = entry.players.clone().join(", ") - ), - size: 15., - bold: false, - color: None, - font: None, - }], + .map(|(place, entry)| DocumentElement::Text { + s: trm!( + "c.menu.scoreboard.entry", + s = place.to_string(), + s = entry.score.points.to_string(), + s = entry.players.clone().join(", ") + ), + size: 15., + bold: false, + color: None, + font: None, }) .collect(), }, |