From d3dd026252dd26135219ecd42c20ddcde4410386 Mon Sep 17 00:00:00 2001
From: Louis Capitanchik <contact@louiscap.co>
Date: Sun, 17 Nov 2024 01:17:57 +0000
Subject: [PATCH] Install rustup at start of CI script

---
 .gitlab-ci.yml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 1d7efa6..2f27a29 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -15,12 +15,12 @@ variables:
   CARGO_HOME: ${CI_PROJECT_DIR}/.cargo
 
 before_script:
+  - curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- --default-toolchain stable
   - rustup toolchain install nightly
 
 lint:
   stage: test
   script:
-    - rustup component add rustfmt clippy
     - cargo fmt --all --check
     - cargo clippy -- -D warnings
   cache:
-- 
GitLab