Format the code

This commit is contained in:
2022-06-14 06:02:51 +00:00
committed by GitHub
parent 56624c7bd9
commit 248e2d44a2
42 changed files with 1076 additions and 520 deletions

View File

@@ -22,21 +22,17 @@ impl From<&str> for PixivDownloaderError {
macro_rules! concat_pixiv_downloader_error {
($exp1:expr, $exp2:expr) => {
$exp1 = match $exp1 {
Ok(x) => {
match $exp2 {
Ok(_) => { Ok(x) }
Err(e) => { Err(PixivDownloaderError::from(e)) }
Ok(x) => match $exp2 {
Ok(_) => Ok(x),
Err(e) => Err(PixivDownloaderError::from(e)),
},
Err(e) => match $exp2 {
Ok(_) => Err(e),
Err(e2) => {
println!("{}", e);
Err(PixivDownloaderError::from(e2))
}
}
Err(e) => {
match $exp2 {
Ok(_) => { Err(e) }
Err(e2) => {
println!("{}", e);
Err(PixivDownloaderError::from(e2))
}
}
}
},
}
}
};
}