From 292fbe8fc1f0ac74eac63e5d6e2a3fd6788f0b93 Mon Sep 17 00:00:00 2001 From: Kert Date: Sat, 27 Mar 2021 15:22:18 -0700 Subject: [PATCH] Fix readme for rusftmt args The double dash needs to come before rustfmt args. Also, specifying it when Cargo.toml already specifies the edition will result in a warning. --- README.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 12d3b83..3f90025 100644 --- a/README.md +++ b/README.md @@ -19,5 +19,7 @@ rev: master hooks: - id: fmt - args: ['--verbose', '--edition', '2018', '--'] + args: ['--verbose', '--', '--edition', '2018' ] ``` + +Note: Cargo fmt picks up "edition" automatically from Cargo.toml, so specificying this isn't necessary in most cases.