aboutsummaryrefslogtreecommitdiff
path: root/src/modules/blog/module.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules/blog/module.rs')
-rw-r--r--src/modules/blog/module.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/blog/module.rs b/src/modules/blog/module.rs
index e90c380..9d00eea 100644
--- a/src/modules/blog/module.rs
+++ b/src/modules/blog/module.rs
@@ -219,7 +219,7 @@ pub fn module(router: &mut windmark::router::Router) {
for (title, contents) in entries {
let header = construct_header(&config, &title)
- .map_or_else(|()| (String::new(), String::new()), |header| header);
+ .unwrap_or_else(|()| (String::new(), String::new()));
let fixed_blog_name = fixed_blog_name_clone_2.clone();
let mut real_title = "Unknown";