fmt + clippy
This commit is contained in:
parent
aa84f21fde
commit
bf5a25a96f
@ -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",
|
||||
|
||||
@ -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(
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user