1
Fork 0
mirror of https://github.com/RGBCube/Site synced 2025-08-01 13:37:49 +00:00

Apply clippy suggestions

This commit is contained in:
RGBCube 2024-01-08 23:19:01 +03:00
parent a1d9c7e0d3
commit 9ffa4d63aa
No known key found for this signature in database

View file

@ -72,7 +72,7 @@ pub async fn index_handler() -> Markup {
pub async fn entry_handler(Path(entry): Path<String>) -> Markup { pub async fn entry_handler(Path(entry): Path<String>) -> Markup {
if let Some((metadata, body)) = ENTRIES.get(entry.as_str()) { if let Some((metadata, body)) = ENTRIES.get(entry.as_str()) {
text::create(Some(&metadata.title), Page::Other, &body) text::create(Some(&metadata.title), Page::Other, body)
} else { } else {
not_found::handler().await not_found::handler().await
} }