Implicitly set --type=cargo when using --category=cargo

This commit is contained in:
Serial
2022-07-26 19:32:34 -04:00
parent c8ee8c30f0
commit f31937043d
2 changed files with 16 additions and 8 deletions

View File

@@ -36,8 +36,8 @@ fn main() {
match new_lint::create(
matches.get_one::<String>("pass"),
matches.get_one::<String>("name"),
matches.get_one::<String>("category"),
matches.get_one::<String>("type"),
matches.get_one::<String>("category").map(String::as_str),
matches.get_one::<String>("type").map(String::as_str),
matches.contains_id("msrv"),
) {
Ok(_) => update_lints::update(update_lints::UpdateMode::Change),