add dots
This commit is contained in:
parent
83108a20d7
commit
f187ae3a5d
2 changed files with 4 additions and 4 deletions
|
@ -40,7 +40,7 @@ async fn main() {
|
||||||
rt.block_on(async {
|
rt.block_on(async {
|
||||||
thread_revanced
|
thread_revanced
|
||||||
.join()
|
.join()
|
||||||
.expect("Thread Revanced panicked")
|
.expect("Thread Revanced panicked.")
|
||||||
.await
|
.await
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -61,5 +61,5 @@ async fn main() {
|
||||||
init();
|
init();
|
||||||
|
|
||||||
// Run scheduler
|
// Run scheduler
|
||||||
scheduler.join().expect("Scheduler panicked");
|
scheduler.join().expect("Scheduler panicked.");
|
||||||
}
|
}
|
||||||
|
|
|
@ -4,14 +4,14 @@ use std::{env, path::PathBuf};
|
||||||
|
|
||||||
/// Data directory
|
/// Data directory
|
||||||
pub fn get_data_directory() -> PathBuf {
|
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")
|
pwd.join("data")
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Download a file to data directory
|
/// Download a file to data directory
|
||||||
pub async fn download_file(url: String) {
|
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
|
let fname = source
|
||||||
.path_segments()
|
.path_segments()
|
||||||
.and_then(|segments| segments.last())
|
.and_then(|segments| segments.last())
|
||||||
|
|
Loading…
Reference in a new issue