aboutsummaryrefslogtreecommitdiff
path: root/lockchain-http/src/handlers.rs
diff options
context:
space:
mode:
authorKatharina Fey <kookie@spacekookie.de>2018-06-22 22:27:39 +0200
committerKatharina Fey <kookie@spacekookie.de>2018-06-22 22:27:39 +0200
commiteb62b89c0d53dc4bb0fe9fd5a1a337289ea4ab53 (patch)
tree83a4c24bf9404b12a28cc435ad89b6e59edf91d7 /lockchain-http/src/handlers.rs
parentdc7d3725547c483b0357c7c07a68c0814f046f87 (diff)
Fixing a bunch of syntax errors in the code
Diffstat (limited to 'lockchain-http/src/handlers.rs')
-rw-r--r--lockchain-http/src/handlers.rs6
1 files changed, 4 insertions, 2 deletions
diff --git a/lockchain-http/src/handlers.rs b/lockchain-http/src/handlers.rs
index bda91ae..e7d0a11 100644
--- a/lockchain-http/src/handlers.rs
+++ b/lockchain-http/src/handlers.rs
@@ -78,12 +78,14 @@ where
}
/// GET /vault/{vault-id}/records/{record-id}
-pub fn get_record<B, V>((item, req): (Json<GetRecord>, HttpRequestState<ApiState<B, V>>) -> impl Responder
+pub fn get_record<B, V>(
+ (item, req): (Json<VaultCreate>, HttpRequestState<ApiState<B, V>>),
+) -> impl Responder
where
B: Body,
V: Vault<B>,
{
- let state = req.state().lock().unwrap();
+ let mut state = req.state().lock().unwrap();
let vault = state.get_vault("");
Json(OperationFailed {