aboutsummaryrefslogtreecommitdiff
path: root/ui/src/components/node_page.rs
diff options
context:
space:
mode:
Diffstat (limited to 'ui/src/components/node_page.rs')
-rw-r--r--ui/src/components/node_page.rs5
1 files changed, 3 insertions, 2 deletions
diff --git a/ui/src/components/node_page.rs b/ui/src/components/node_page.rs
index f640ec7..53dd904 100644
--- a/ui/src/components/node_page.rs
+++ b/ui/src/components/node_page.rs
@@ -166,7 +166,7 @@ markup::define! {
}}
}
@if !credited.is_empty() {
- h2 { @tr(ri.lang, &format!("node.credited")) }
+ h2 { @tr(ri.lang, "node.credited") }
ul.nl.grid { @for nku in *credited {
li { @NodeCard { ri, nku } }
}}
@@ -205,7 +205,8 @@ pub fn aspect_class(node: &Object) -> &'static str {
KIND_SEASON | KIND_SHOW | KIND_PERSON | KIND_SERIES | KIND_MOVIE | KIND_SHORTFORMVIDEO => {
"aspect-port"
}
- KIND_CHANNEL | KIND_MUSIC | _ => "aspect-square",
+ KIND_CHANNEL | KIND_MUSIC => "aspect-square",
+ _ => unreachable!(),
}
}