You've already forked AstralRinth
forked from didirus/AstralRinth
fmt + clippy
This commit is contained in:
@@ -16,7 +16,7 @@ use serde::{Deserialize, Serialize};
|
|||||||
use std::collections::HashMap;
|
use std::collections::HashMap;
|
||||||
use std::io::Read;
|
use std::io::Read;
|
||||||
use std::sync::Arc;
|
use std::sync::Arc;
|
||||||
use std::time::{Duration, Instant};
|
use std::time::Instant;
|
||||||
use tokio::sync::{Mutex, Semaphore};
|
use tokio::sync::{Mutex, Semaphore};
|
||||||
|
|
||||||
lazy_static! {
|
lazy_static! {
|
||||||
@@ -545,8 +545,6 @@ pub async fn retrieve_data(
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
println!("{}", serde_json::to_string(&versions).unwrap());
|
|
||||||
|
|
||||||
upload_file_to_bucket(
|
upload_file_to_bucket(
|
||||||
format!(
|
format!(
|
||||||
"forge/v{}/manifest.json",
|
"forge/v{}/manifest.json",
|
||||||
|
|||||||
@@ -189,11 +189,7 @@ pub async fn upload_file_to_bucket(
|
|||||||
}
|
}
|
||||||
|
|
||||||
pub fn format_url(path: &str) -> String {
|
pub fn format_url(path: &str) -> String {
|
||||||
format!(
|
format!("{}/{}", &*dotenvy::var("BASE_URL").unwrap(), path)
|
||||||
"{}/{}",
|
|
||||||
&*dotenvy::var("BASE_URL").unwrap(),
|
|
||||||
path
|
|
||||||
)
|
|
||||||
}
|
}
|
||||||
|
|
||||||
pub async fn download_file(
|
pub async fn download_file(
|
||||||
|
|||||||
Reference in New Issue
Block a user