fix: pre-commit cfg, clippy errors
This commit is contained in:
parent
53dc5e2c09
commit
394f8609a8
3 changed files with 3 additions and 3 deletions
|
|
@ -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"]
|
||||
|
|
|
|||
|
|
@ -36,6 +36,7 @@ enum Commands {
|
|||
},
|
||||
}
|
||||
|
||||
#[allow(clippy::too_many_arguments)]
|
||||
async fn download_single_video(
|
||||
video_id: String,
|
||||
video_title: String,
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
Reference in a new issue