Fix tests

This commit is contained in:
Nick Cameron 2018-06-05 20:58:02 +12:00
parent 95b4978baa
commit f545dfe95e

View File

@ -149,8 +149,7 @@ fn format_crate(
let rustfmt_args = get_fmt_args();
let targets = if rustfmt_args
.iter()
.any(|s| ["--print-config", "-h", "--help", "-V", "--verison"]
.contains(&s.as_str()))
.any(|s| ["--print-config", "-h", "--help", "-V", "--verison"].contains(&s.as_str()))
{
HashSet::new()
} else {