diff options
Diffstat (limited to 'src/get_routes.rs')
-rw-r--r-- | src/get_routes.rs | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/get_routes.rs b/src/get_routes.rs index be2e9c4..a743292 100644 --- a/src/get_routes.rs +++ b/src/get_routes.rs @@ -56,7 +56,7 @@ fn view_blob<C: Controller>( ) -> Result<Response, Error> { let mut page = Page { title: ctx.file_name().unwrap().to_owned(), - header: Some(action_links(¶ms.action, controller, &ctx, parts)), + header: action_links(¶ms.action, controller, &ctx, parts), ..Default::default() }; @@ -135,7 +135,7 @@ fn log_blob<C: Controller>( let mut page = Page { title: format!("Log for {}", filename), - header: Some(action_links(¶ms.action, controller, &ctx, parts)), + header: action_links(¶ms.action, controller, &ctx, parts), ..Default::default() }; @@ -255,7 +255,7 @@ fn diff_blob<C: Controller>( return Ok(Page { title: format!("Commit for {}", ctx.file_name().unwrap()), body: "file removed".into(), - header: Some(action_links(&action_param.action, controller, &ctx, parts)), + header: action_links(&action_param.action, controller, &ctx, parts), ..Default::default() } .into()); @@ -279,7 +279,7 @@ fn diff_blob<C: Controller>( }, ctx.file_name().unwrap() ), - header: Some(action_links(&action_param.action, controller, &ctx, parts)), + header: action_links(&action_param.action, controller, &ctx, parts), ..Default::default() }; page.body.push_str("<div>"); @@ -426,7 +426,7 @@ fn remove_blob<C: Controller>( let page = Page { title: format!("Remove {}", filename), - header: Some(action_links(¶ms.action, controller, &ctx, parts)), + header: action_links(¶ms.action, controller, &ctx, parts), body: "<form method=post autocomplete=off>\ <label>Message <input name=msg autofocus></label>\ <button>Remove</button></form>" |