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 0dcea757641b4f914960704066f2421622b69285
parent 46e0f3c43a81ce9411612c152e414162a9c220ac
Author: Daniel GarcĂ­a <dani-garcia@users.noreply.github.com>
Date:   Sat, 26 Jun 2021 13:35:09 +0200

Remove unused lifetime and double referencing

Diffstat:
Msrc/api/core/mod.rs | 2+-
Msrc/auth.rs | 2+-
2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/api/core/mod.rs b/src/api/core/mod.rs @@ -40,7 +40,7 @@ use crate::{ }; #[put("/devices/identifier/<uuid>/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 @@ -64,7 +64,7 @@ fn decode_jwt<T: DeserializeOwned>(token: &str, issuer: String) -> Result<T, Err }; let token = token.replace(char::is_whitespace, ""); - jsonwebtoken::decode(&token, &&PUBLIC_RSA_KEY, &validation).map(|d| d.claims).map_res("Error decoding JWT") + jsonwebtoken::decode(&token, &PUBLIC_RSA_KEY, &validation).map(|d| d.claims).map_res("Error decoding JWT") } pub fn decode_login(token: &str) -> Result<LoginJwtClaims, Error> {