We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 71a5e62 commit b63dcbbCopy full SHA for b63dcbb
1 file changed
ci/scripts/rust_fmt.sh
@@ -24,4 +24,7 @@ rustup toolchain install nightly --component rustfmt
24
25
# Use nightly rustfmt to check formatting including doc comments
26
# This requires nightly because format_code_in_doc_comments is an unstable feature
27
-cargo +nightly fmt --all -- --check --config format_code_in_doc_comments=true
+if ! cargo +nightly fmt --all -- --check --config format_code_in_doc_comments=true; then
28
+ echo "To fix, run: cargo +nightly fmt --all -- --config format_code_in_doc_comments=true"
29
+ exit 1
30
+fi
0 commit comments