Skip to content

Commit 7dd7354

Browse files
author
Jude Taylor
committed
Merge branch 'cargo-fmt-faster' into 'master'
Run `cargo fmt` without `--all` According to [this thread](rust-lang/rustfmt#4247), the `--all` flag causes `cargo-fmt` to call `cargo metadata` for each package in the workspace, which requires a fresh cargo registry locally. However, `cargo fmt --all` is redundant in most cases, as it is in ours. Removing it should speed up the build step. See merge request dfinity-lab/public/ic!3054
2 parents de9f2b8 + 33daf9c commit 7dd7354

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

gitlab-ci/src/rust_lint/lint.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
set -xeuo pipefail
33

44
cd "$CI_PROJECT_DIR/rs"
5-
cargo fmt --all -- --check
5+
cargo fmt -- --check
66
cargo clippy --locked --all-features --tests --benches -- -D warnings -D clippy::all -D clippy::mem_forget -C debug-assertions=off
77

88
if cargo tree -e features | grep -q 'serde feature "rc"'; then

0 commit comments

Comments
 (0)