fix: pre-commit cfg, clippy errors

This commit is contained in:
ThetaDev 2022-11-29 12:54:23 +01:00
parent 53dc5e2c09
commit 394f8609a8
3 changed files with 3 additions and 3 deletions

View file

@ -9,6 +9,5 @@ repos:
rev: v0.1.0
hooks:
- id: cargo-fmt
- id: cargo-check
- id: cargo-clippy
args: ["--", "-D", "warnings"]
args: ["--all", "--all-features", "--", "-D", "warnings"]

View file

@ -36,6 +36,7 @@ enum Commands {
},
}
#[allow(clippy::too_many_arguments)]
async fn download_single_video(
video_id: String,
video_title: String,

View file

@ -65,7 +65,7 @@ pub fn write_samples_to_dict(project_root: &Path) {
e_langs.push(lang);
e_langs.iter().for_each(|lang| {
collected.get(&lang).unwrap().iter().for_each(|(t, v)| {
collected.get(lang).unwrap().iter().for_each(|(t, v)| {
dict_entry
.album_types
.insert(v.to_lowercase().trim().to_owned(), *t);