aboutsummaryrefslogtreecommitdiff
path: root/src/main.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.rs')
-rw-r--r--src/main.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main.rs b/src/main.rs
index 231a7af..7127922 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -272,7 +272,7 @@ async fn service<C: Controller>(
#[derive(Default)]
pub struct Page {
title: String,
- header: Option<String>,
+ header: String,
body: String,
/// will be embedded as inline <script> tags
scripts: Vec<&'static str>,
@@ -290,7 +290,7 @@ fn render_page<C: Controller>(page: &Page, controller: &C, parts: &Parts) -> Str
out.push_str("<meta name=viewport content=\"width=device-width, initial-scale=1\"><style>");
out.push_str(include_str!("static/style.css"));
out.push_str("</style></head><body><header id=header>");
- out.push_str(page.header.as_deref().unwrap_or_default());
+ out.push_str(&page.header);
out.push_str(
&controller
.user_info_html(parts)