From 0dcea757641b4f914960704066f2421622b69285 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Garc=C3=ADa?= Date: Sat, 26 Jun 2021 13:35:09 +0200 Subject: [PATCH] Remove unused lifetime and double referencing --- src/api/core/mod.rs | 2 +- src/auth.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/api/core/mod.rs b/src/api/core/mod.rs index 139de2a0..e1c1fa0d 100644 --- a/src/api/core/mod.rs +++ b/src/api/core/mod.rs @@ -40,7 +40,7 @@ use crate::{ }; #[put("/devices/identifier//clear-token")] -fn clear_device_token<'a>(uuid: String) -> &'static str { +fn clear_device_token(uuid: String) -> &'static str { // This endpoint doesn't have auth header let _ = uuid; diff --git a/src/auth.rs b/src/auth.rs index 190cfacb..1329cdc3 100644 --- a/src/auth.rs +++ b/src/auth.rs @@ -64,7 +64,7 @@ fn decode_jwt(token: &str, issuer: String) -> Result Result {