diff options
| author | metamuffin <metamuffin@disroot.org> | 2026-03-07 23:28:45 +0100 |
|---|---|---|
| committer | metamuffin <metamuffin@disroot.org> | 2026-03-07 23:28:45 +0100 |
| commit | 9d1e1772c02032f70b6db584dddae8fd06b490d6 (patch) | |
| tree | 9d97b4d3e1252c4b99f30a19f339700eaab44c45 /ui/src/components/node_page.rs | |
| parent | d1b7691adb7c40bf21053d324fdac16c544cd536 (diff) | |
| download | jellything-9d1e1772c02032f70b6db584dddae8fd06b490d6.tar jellything-9d1e1772c02032f70b6db584dddae8fd06b490d6.tar.bz2 jellything-9d1e1772c02032f70b6db584dddae8fd06b490d6.tar.zst | |
manual clippy
Diffstat (limited to 'ui/src/components/node_page.rs')
| -rw-r--r-- | ui/src/components/node_page.rs | 5 |
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!(), } } |