mirror of
				https://github.com/dani-garcia/vaultwarden.git
				synced 2025-10-31 10:18:19 +02:00 
			
		
		
		
	Fixed some clippy lints and changed update_uuid_revision to only use one db query
This commit is contained in:
		| @@ -117,8 +117,8 @@ fn post_eq_domains(data: JsonUpcase<EquivDomainData>, headers: Headers, conn: Db | ||||
|     let mut user = headers.user; | ||||
|     use serde_json::to_string; | ||||
|  | ||||
|     user.excluded_globals = to_string(&excluded_globals).unwrap_or("[]".to_string()); | ||||
|     user.equivalent_domains = to_string(&equivalent_domains).unwrap_or("[]".to_string()); | ||||
|     user.excluded_globals = to_string(&excluded_globals).unwrap_or_else(|_| "[]".to_string()); | ||||
|     user.equivalent_domains = to_string(&equivalent_domains).unwrap_or_else(|_| "[]".to_string()); | ||||
|  | ||||
|     user.save(&conn)?; | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user