From 35b4ad69bdde3711d74538cdb30a355d2ecc8458 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Garc=C3=ADa?= Date: Wed, 4 Jul 2018 14:27:47 +0200 Subject: [PATCH] Remove unused warnings --- src/api/core/mod.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/api/core/mod.rs b/src/api/core/mod.rs index d57e9715..24a7de1d 100644 --- a/src/api/core/mod.rs +++ b/src/api/core/mod.rs @@ -109,6 +109,8 @@ use auth::Headers; #[put("/devices/identifier//clear-token", data = "")] fn clear_device_token(uuid: String, data: Json, headers: Headers, conn: DbConn) -> EmptyResult { + let _data: Value = data.into_inner(); + let device = match Device::find_by_uuid(&uuid, &conn) { Some(device) => device, None => err!("Device not found") @@ -125,6 +127,8 @@ fn clear_device_token(uuid: String, data: Json, headers: Headers, conn: D #[put("/devices/identifier//token", data = "")] fn put_device_token(uuid: String, data: Json, headers: Headers, conn: DbConn) -> JsonResult { + let _data: Value = data.into_inner(); + let device = match Device::find_by_uuid(&uuid, &conn) { Some(device) => device, None => err!("Device not found")