aboutsummaryrefslogtreecommitdiff
path: root/src/forms.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/forms.rs')
-rw-r--r--src/forms.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/forms.rs b/src/forms.rs
index 0a2019c..6328738 100644
--- a/src/forms.rs
+++ b/src/forms.rs
@@ -43,7 +43,7 @@ pub fn edit_text_form<'a, C: Controller>(
script_src: vec![include_str!("static/edit_script.js.sha")],
..Default::default()
};
- if let Some(access_info_html) = controller.access_info_html(&ctx, parts) {
+ if let Some(access_info_html) = controller.access_info_html(ctx, parts) {
page.body.push_str(&access_info_html);
}
if let Some(hint_html) = controller.edit_hint_html(ctx) {
@@ -137,7 +137,7 @@ pub fn upload_form<'a, C: Controller>(
</form>"
.into(),
header: file_exists
- .then(|| action_links("edit", controller, &ctx, parts))
+ .then(|| action_links("edit", controller, ctx, parts))
.unwrap_or_default(),
..Default::default()
}