From 5947ea607c66e383b51db87913880e55509d7d65 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matthias=20Kr=C3=BCger?= Date: Wed, 12 Sep 2018 21:43:31 +0200 Subject: [PATCH] cargo fmt: fix typo in format_crate(): (verison -> version) --- src/cargo-fmt/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cargo-fmt/main.rs b/src/cargo-fmt/main.rs index 2d8234ef41e39..8a6f038b4854d 100644 --- a/src/cargo-fmt/main.rs +++ b/src/cargo-fmt/main.rs @@ -149,7 +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", "--version"].contains(&s.as_str())) { HashSet::new() } else {