clippy
Signed-off-by: Harald Hoyer <harald@hoyer.xyz>
This commit is contained in:
parent
d7b7a72444
commit
28ad7cc65c
12
src/main.rs
12
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?;
|
||||
|
||||
|
|
Loading…
Reference in a new issue