aboutsummaryrefslogtreecommitdiff
path: root/server/locale
diff options
context:
space:
mode:
authormetamuffin <metamuffin@disroot.org>2025-09-30 21:33:38 +0200
committermetamuffin <metamuffin@disroot.org>2025-09-30 21:33:38 +0200
commitf15c20e887a58ae8d65c6d4f240d74a3b74cd55d (patch)
treea5ac3043a46eb33150e6323d22d8bffbc9048d00 /server/locale
parent080672a5fee18336971fa18ab35bb82fb62a0225 (diff)
downloadhurrycurry-f15c20e887a58ae8d65c6d4f240d74a3b74cd55d.tar
hurrycurry-f15c20e887a58ae8d65c6d4f240d74a3b74cd55d.tar.bz2
hurrycurry-f15c20e887a58ae8d65c6d4f240d74a3b74cd55d.tar.zst
clippy; make use of is_some_and and is_none_or
Diffstat (limited to 'server/locale')
-rw-r--r--server/locale/src/message.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/server/locale/src/message.rs b/server/locale/src/message.rs
index bedf45fd..798986fc 100644
--- a/server/locale/src/message.rs
+++ b/server/locale/src/message.rs
@@ -41,7 +41,7 @@ fn display_message_inner(
} = style;
match message {
Message::Translation { id, params } => {
- let Some(template) = locale.get(&id) else {
+ let Some(template) = locale.get(id) else {
return format!("[translation missing: {error}{id}{default}]");
};
let mut s = template.to_string();