From 28ad7cc65cf763529daaf8f567fdf99ea9f5c330 Mon Sep 17 00:00:00 2001 From: Harald Hoyer Date: Mon, 24 Mar 2025 09:47:40 +0100 Subject: [PATCH] clippy Signed-off-by: Harald Hoyer --- src/main.rs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/main.rs b/src/main.rs index 8afb25f..a106db3 100644 --- a/src/main.rs +++ b/src/main.rs @@ -191,7 +191,7 @@ async fn login(username: &str, password: &str, api_url: &str) -> Result<()> { let client = reqwest::Client::new(); let response = client - .post(&format!("{}/api/login", api_url)) + .post(format!("{}/api/login", api_url)) .json(&serde_json::json!({ "username": username, "password": password, @@ -227,7 +227,7 @@ async fn upload_document(name: &str, file_path: PathBuf, api_url: &str) -> Resul let client = reqwest::Client::new(); let response = client - .post(&format!("{}/api/documents", api_url)) + .post(format!("{}/api/documents", api_url)) .multipart(form) .send() .await?; @@ -254,7 +254,7 @@ async fn sign_document( let client = reqwest::Client::new(); let response = client - .post(&format!("{}/api/documents/{}/sign", api_url, document_id)) + .post(format!("{}/api/documents/{}/sign", api_url, document_id)) .json(&serde_json::json!({ "username": username, "token": token, @@ -279,7 +279,7 @@ async fn verify_document(document_id: &str, api_url: &str) -> Result<()> { let client = reqwest::Client::new(); let response = client - .get(&format!("{}/api/documents/{}/verify", api_url, document_id)) + .get(format!("{}/api/documents/{}/verify", api_url, document_id)) .send() .await?; @@ -318,7 +318,7 @@ async fn list_documents(api_url: &str) -> Result<()> { let client = reqwest::Client::new(); let response = client - .get(&format!("{}/api/documents", api_url)) + .get(format!("{}/api/documents", api_url)) .send() .await?; @@ -346,7 +346,7 @@ async fn get_document(document_id: &str, api_url: &str) -> Result<()> { let client = reqwest::Client::new(); let response = client - .get(&format!("{}/api/documents/{}", api_url, document_id)) + .get(format!("{}/api/documents/{}", api_url, document_id)) .send() .await?;