Skip to content

Commit f545dfe

Browse files
committed
Fix tests
1 parent 95b4978 commit f545dfe

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/cargo-fmt/main.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -149,8 +149,7 @@ fn format_crate(
149149
let rustfmt_args = get_fmt_args();
150150
let targets = if rustfmt_args
151151
.iter()
152-
.any(|s| ["--print-config", "-h", "--help", "-V", "--verison"]
153-
.contains(&s.as_str()))
152+
.any(|s| ["--print-config", "-h", "--help", "-V", "--verison"].contains(&s.as_str()))
154153
{
155154
HashSet::new()
156155
} else {

0 commit comments

Comments
 (0)