From a1cfaa280905bb8628238e7f3362834323daa0c7 Mon Sep 17 00:00:00 2001 From: phoenix Date: Thu, 11 Jun 2026 17:18:19 -0400 Subject: [PATCH] Change type of function parameter --- tests/tests.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/tests.rs b/tests/tests.rs index dd0c2fe..39d5a6d 100644 --- a/tests/tests.rs +++ b/tests/tests.rs @@ -135,7 +135,7 @@ pub mod requests { } - pub async fn login_service_user(app: &axum::Router, username: &String, passphrase: &String) -> Result { + pub async fn login_service_user(app: &axum::Router, username: &str, passphrase: &str) -> Result { let payload = serde_json::json!({ "username": username, "passphrase": passphrase, @@ -255,7 +255,7 @@ async fn register_service_user(app: &axum::Router,) -> Result Result { +async fn login_service_user(app: &axum::Router, username: &str, passphrase: &str) -> Result { match requests::login_service_user(&app, username, passphrase).await { Ok(response) => { if axum::http::StatusCode::OK != response.status() {