fmt + clippy

This commit is contained in:
Jai A 2023-04-05 12:02:47 -07:00
parent aa84f21fde
commit bf5a25a96f
No known key found for this signature in database
GPG Key ID: 9A9F9B7250E9883C
2 changed files with 2 additions and 8 deletions

View File

@ -16,7 +16,7 @@ use serde::{Deserialize, Serialize};
use std::collections::HashMap;
use std::io::Read;
use std::sync::Arc;
use std::time::{Duration, Instant};
use std::time::Instant;
use tokio::sync::{Mutex, Semaphore};
lazy_static! {
@ -545,8 +545,6 @@ pub async fn retrieve_data(
}
}
println!("{}", serde_json::to_string(&versions).unwrap());
upload_file_to_bucket(
format!(
"forge/v{}/manifest.json",

View File

@ -189,11 +189,7 @@ pub async fn upload_file_to_bucket(
}
pub fn format_url(path: &str) -> String {
format!(
"{}/{}",
&*dotenvy::var("BASE_URL").unwrap(),
path
)
format!("{}/{}", &*dotenvy::var("BASE_URL").unwrap(), path)
}
pub async fn download_file(