Fix tests
This commit is contained in:
parent
95b4978baa
commit
f545dfe95e
@ -149,8 +149,7 @@ fn format_crate(
|
|||||||
let rustfmt_args = get_fmt_args();
|
let rustfmt_args = get_fmt_args();
|
||||||
let targets = if rustfmt_args
|
let targets = if rustfmt_args
|
||||||
.iter()
|
.iter()
|
||||||
.any(|s| ["--print-config", "-h", "--help", "-V", "--verison"]
|
.any(|s| ["--print-config", "-h", "--help", "-V", "--verison"].contains(&s.as_str()))
|
||||||
.contains(&s.as_str()))
|
|
||||||
{
|
{
|
||||||
HashSet::new()
|
HashSet::new()
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user