aboutsummaryrefslogtreecommitdiff
path: root/src/get_routes.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/get_routes.rs')
-rw-r--r--src/get_routes.rs5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/get_routes.rs b/src/get_routes.rs
index 10d3476..8290623 100644
--- a/src/get_routes.rs
+++ b/src/get_routes.rs
@@ -42,7 +42,7 @@ pub(crate) fn get_blob<C: Controller>(
"raw" => raw_blob(entr, params, controller, ctx, parts).map(|r| r.into()),
"run" => run_blob(entr, params, controller, ctx, parts).map(|r| r.into()),
"move" => move_blob(entr, params, controller, ctx, parts),
- "remove" => remove_blob(entr, params, controller, ctx, parts),
+ "remove" => remove_blob(params, controller, ctx, parts),
_ => Err(Error::BadRequest("unknown action".into())),
}
}
@@ -233,7 +233,7 @@ fn diff_blob<C: Controller>(
.ok_or_else(|| Error::NotFound("commit not found".into()))?;
let old_commit = if let Some(oldid) = &params.oldid {
- let other_commit = find_commit(&ctx.repo, &oldid, &branch_commit.id())
+ let other_commit = find_commit(&ctx.repo, oldid, &branch_commit.id())
.ok_or_else(|| Error::NotFound("commit not found".into()))?;
if other_commit.time() > commit.time() {
@@ -410,7 +410,6 @@ fn move_blob<C: Controller>(
}
fn remove_blob<C: Controller>(
- entr: TreeEntry,
params: ActionParam,
controller: &C,
ctx: Context,