Fix force-warns to allow dashes.
This commit is contained in:
parent
40c1623b16
commit
7905473021
2 changed files with 3 additions and 2 deletions
|
@ -1207,7 +1207,8 @@ pub fn get_cmd_lint_options(
|
|||
);
|
||||
}
|
||||
|
||||
let force_warns = matches.opt_strs("force-warns");
|
||||
let force_warns =
|
||||
matches.opt_strs("force-warns").into_iter().map(|name| name.replace('-', "_")).collect();
|
||||
|
||||
(lint_opts, describe_lints, lint_cap, force_warns)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue