From 8e8614fe2edf7584809c468284c20f02807bbb14 Mon Sep 17 00:00:00 2001 From: Valentin Tolmer Date: Wed, 8 Dec 2021 11:45:47 +0100 Subject: [PATCH] server: fix clippy warning --- server/src/infra/auth_service.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/src/infra/auth_service.rs b/server/src/infra/auth_service.rs index 80c11ea..13050ec 100644 --- a/server/src/infra/auth_service.rs +++ b/server/src/infra/auth_service.rs @@ -53,7 +53,7 @@ fn get_refresh_token_from_cookie( ) -> std::result::Result<(u64, String), HttpResponse> { match request.cookie("refresh_token") { None => Err(HttpResponse::Unauthorized().body("Missing refresh token")), - Some(t) => match t.value().split_once("+") { + Some(t) => match t.value().split_once('+') { None => Err(HttpResponse::Unauthorized().body("Invalid refresh token")), Some((token, u)) => { let refresh_token_hash = {