aboutsummaryrefslogtreecommitdiff
path: root/server/src/routes/ui/node.rs
diff options
context:
space:
mode:
authormetamuffin <metamuffin@disroot.org>2023-01-27 21:48:22 +0100
committermetamuffin <metamuffin@disroot.org>2023-01-27 21:48:22 +0100
commita742f7dbd8bda0bf23a6d5273e5dd2f83b9d4c9f (patch)
tree49ba83ef7aec7b2bf4ff61b41c621696c45c6e95 /server/src/routes/ui/node.rs
parent04e3ebfdda613be0e58290a49536116cc57ad147 (diff)
downloadjellything-a742f7dbd8bda0bf23a6d5273e5dd2f83b9d4c9f.tar
jellything-a742f7dbd8bda0bf23a6d5273e5dd2f83b9d4c9f.tar.bz2
jellything-a742f7dbd8bda0bf23a6d5273e5dd2f83b9d4c9f.tar.zst
clippy
Diffstat (limited to 'server/src/routes/ui/node.rs')
-rw-r--r--server/src/routes/ui/node.rs5
1 files changed, 2 insertions, 3 deletions
diff --git a/server/src/routes/ui/node.rs b/server/src/routes/ui/node.rs
index f216df2..dd98a61 100644
--- a/server/src/routes/ui/node.rs
+++ b/server/src/routes/ui/node.rs
@@ -26,10 +26,9 @@ pub async fn r_library_node(
) -> Result<DynLayoutPage<'_>, MyError> {
let node = library
.nested_path(&path)
- .context("retrieving library node")?
- .clone();
+ .context("retrieving library node")?;
Ok(LayoutPage {
- title: format!("{}", node.title()),
+ title: node.title().to_string(),
content: markup::new! {
@NodePage { node: node.clone() }
},