mirror of
				https://github.com/dani-garcia/vaultwarden.git
				synced 2025-10-31 13:51:14 +00:00 
			
		
		
		
	Remove unused lifetime and double referencing
This commit is contained in:
		
					parent
					
						
							
								46e0f3c43a
							
						
					
				
			
			
				commit
				
					
						0dcea75764
					
				
			
		
					 2 changed files with 2 additions and 2 deletions
				
			
		|  | @ -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; | ||||
|  |  | |||
|  | @ -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> { | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue