This commit is contained in:
Mylloon 2023-09-05 16:53:14 +02:00
parent 83108a20d7
commit f187ae3a5d
Signed by: Anri
GPG key ID: A82D63DFF8D1317F
2 changed files with 4 additions and 4 deletions

View file

@ -40,7 +40,7 @@ async fn main() {
rt.block_on(async {
thread_revanced
.join()
.expect("Thread Revanced panicked")
.expect("Thread Revanced panicked.")
.await
});
@ -61,5 +61,5 @@ async fn main() {
init();
// Run scheduler
scheduler.join().expect("Scheduler panicked");
scheduler.join().expect("Scheduler panicked.");
}

View file

@ -4,14 +4,14 @@ use std::{env, path::PathBuf};
/// Data directory
pub fn get_data_directory() -> PathBuf {
let pwd = env::current_dir().expect("Can't find the current directory");
let pwd = env::current_dir().expect("Can't find the current directory.");
pwd.join("data")
}
/// Download a file to data directory
pub async fn download_file(url: String) {
let source = reqwest::Url::parse(&url).expect("Can't parse the URL");
let source = reqwest::Url::parse(&url).expect("Can't parse the URL.");
let fname = source
.path_segments()
.and_then(|segments| segments.last())