diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 001e8bd..6c6b7f1 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -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"] diff --git a/cli/src/main.rs b/cli/src/main.rs index 6c21cde..0acac75 100644 --- a/cli/src/main.rs +++ b/cli/src/main.rs @@ -36,6 +36,7 @@ enum Commands { }, } +#[allow(clippy::too_many_arguments)] async fn download_single_video( video_id: String, video_title: String, diff --git a/codegen/src/collect_album_types.rs b/codegen/src/collect_album_types.rs index 752e90a..2bd6009 100644 --- a/codegen/src/collect_album_types.rs +++ b/codegen/src/collect_album_types.rs @@ -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);