From a1bbaa3014b243011e6f65af026b954385cddc6d Mon Sep 17 00:00:00 2001 From: Avril Date: Mon, 13 Jul 2020 03:05:21 +0100 Subject: [PATCH] modify todo --- src/work_async.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/work_async.rs b/src/work_async.rs index 3879c6d..faf80b9 100644 --- a/src/work_async.rs +++ b/src/work_async.rs @@ -14,7 +14,7 @@ mod tasklist; #[macro_use] mod progress; -//TODO: Create a module for temp files, pass the temp file to `perform` and do the regex fixing after `perform` +//TODO: Create a module for temp files, pass the temp file to `perform` and do the base64 fixing after `perform` /// Download a loli async pub async fn perform(url: impl AsRef, path: impl AsRef, mut progress: progress::CommandSender) -> Result<(), error::Error> @@ -84,7 +84,7 @@ pub async fn work(conf: config::Config) -> Result<(), Box //println!("Starting download ({})...", url); prog.println(format!("Starting download ({})...", url)).await.expect("fatal"); let path = match path { - config::OutputType::File(file) => file, + config::OutputType::File(file) => file, //TODO: Download to temp file, memmap to str slice and then base64 decode. Also, determine if we need .png or .jpg from header. config::OutputType::Directory(dir) => { //TODO: Implement downloading to temp and renaming to hash unimplemented!();