aboutsummaryrefslogtreecommitdiff
path: root/src/post_routes.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/post_routes.rs')
-rw-r--r--src/post_routes.rs14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/post_routes.rs b/src/post_routes.rs
index 51b35ec..3f8e5d1 100644
--- a/src/post_routes.rs
+++ b/src/post_routes.rs
@@ -28,7 +28,7 @@ pub(crate) async fn build_response<C: Controller>(
host: &HttpOrigin,
params: &ActionParam,
controller: &C,
- ctx: Context,
+ ctx: Context<'_>,
body: Body,
parts: &mut Parts,
) -> Result<Response, Error> {
@@ -108,7 +108,7 @@ fn commit_file_update<C: Controller>(
async fn update_blob<C: Controller>(
body: Body,
controller: &C,
- ctx: Context,
+ ctx: Context<'_>,
parts: &mut Parts,
) -> Result<Response, Error> {
if !controller.may_write_path(&ctx, parts) {
@@ -160,7 +160,7 @@ async fn update_blob<C: Controller>(
async fn upload_blob<C: Controller>(
body: Body,
controller: &C,
- ctx: Context,
+ ctx: Context<'_>,
parts: &mut Parts,
) -> Result<Response, Error> {
if !controller.may_write_path(&ctx, parts) {
@@ -204,7 +204,7 @@ async fn upload_blob<C: Controller>(
async fn move_entry<C: Controller>(
body: Body,
controller: &C,
- ctx: Context,
+ ctx: Context<'_>,
parts: &Parts,
) -> Result<Response, Error> {
if !controller.may_move_path(&ctx, parts) {
@@ -289,7 +289,7 @@ struct RemoveForm {
async fn remove_entry<C: Controller>(
body: Body,
controller: &C,
- ctx: Context,
+ ctx: Context<'_>,
parts: &Parts,
) -> Result<Response, Error> {
if !controller.may_move_path(&ctx, parts) {
@@ -326,7 +326,7 @@ async fn remove_entry<C: Controller>(
async fn diff_blob<C: Controller>(
body: Body,
controller: &C,
- ctx: Context,
+ ctx: Context<'_>,
parts: &Parts,
) -> Result<Response, Error> {
if !controller.may_write_path(&ctx, parts) {
@@ -355,7 +355,7 @@ async fn diff_blob<C: Controller>(
async fn preview_edit<C: Controller>(
body: Body,
controller: &C,
- ctx: Context,
+ ctx: Context<'_>,
parts: &Parts,
) -> Result<Response, Error> {
let form: EditForm = body.into_form().await?;