vw_small

Hardened fork of Vaultwarden (https://github.com/dani-garcia/vaultwarden) with fewer features.
git clone https://git.philomathiclife.com/repos/vw_small
Log | Files | Refs | README

commit 35b4ad69bdde3711d74538cdb30a355d2ecc8458
parent dfb348d6303010c08b6ff4224da7be47ef268902
Author: Daniel GarcĂ­a <dani-garcia@users.noreply.github.com>
Date:   Wed,  4 Jul 2018 14:27:47 +0200

Remove unused warnings

Diffstat:
Msrc/api/core/mod.rs | 4++++
1 file changed, 4 insertions(+), 0 deletions(-)

diff --git a/src/api/core/mod.rs b/src/api/core/mod.rs @@ -109,6 +109,8 @@ use auth::Headers; #[put("/devices/identifier/<uuid>/clear-token", data = "<data>")] fn clear_device_token(uuid: String, data: Json<Value>, 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<Value>, headers: Headers, conn: D #[put("/devices/identifier/<uuid>/token", data = "<data>")] fn put_device_token(uuid: String, data: Json<Value>, 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")