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 {
|
||||
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.");
|
||||
}
|
||||
|
|
|
@ -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())
|
||||
|
|
Loading…
Reference in a new issue