Fix clippy lints, add 7z fallback for failed unrar

This commit is contained in:
Tyler Hallada
2021-08-14 11:43:09 -06:00
parent be9c78217d
commit ba6ca0c928
12 changed files with 114 additions and 100 deletions

View File

@@ -70,7 +70,7 @@ impl FilesResponse {
.as_array()
.ok_or_else(|| anyhow!("files value in API response is not an array"))?;
let files: Vec<ApiFile> = files
.into_iter()
.iter()
.map(|file| {
let file_id = file
.get("file_id")