1
Fork 0

Fix force-warns to allow dashes.

This commit is contained in:
Eric Huss 2021-06-07 13:40:59 -07:00
parent 40c1623b16
commit 7905473021
2 changed files with 3 additions and 2 deletions

View file

@ -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)
}