summaryrefslogtreecommitdiffstats
path: root/ci/install.sh
diff options
context:
space:
mode:
Diffstat (limited to 'ci/install.sh')
-rwxr-xr-xci/install.sh7
1 files changed, 6 insertions, 1 deletions
diff --git a/ci/install.sh b/ci/install.sh
index af4bb776..ccbe3728 100755
--- a/ci/install.sh
+++ b/ci/install.sh
@@ -1,6 +1,11 @@
#!/bin/bash
-# Add clippy for linting with nightly builds
+# Add clippy for lint validation
if [ "$CLIPPY" == "true" ]; then
rustup component add clippy
fi
+
+# Add rustfmt for format validation
+if [ "$RUSTFMT" == "true" ]; then
+ rustup component add rustfmt
+fi