follow clippy

This commit is contained in:
Mylloon 2023-02-07 15:30:17 +01:00
parent 0322a8a191
commit 41d8d555f6
Signed by: Anri
GPG key ID: A82D63DFF8D1317F

View file

@ -1,7 +1,7 @@
/// Download all the posts
pub async fn download_posts(posts: (String, Vec<String>), dir: &str, download_special_files: bool) {
// Create folder, silently ignore if already exists
std::fs::create_dir(&dir).unwrap_or_default();
std::fs::create_dir(dir).unwrap_or_default();
// Define client with custom user-agent
let client = reqwest::Client::builder()