From 3c8afac45d70e1aff96959bc6956d3502d99e7ff Mon Sep 17 00:00:00 2001
From: STEVAN Antoine <antoine.stevan@isae-supaero.fr>
Date: Wed, 5 Mar 2025 15:01:00 +0000
Subject: [PATCH] fix the Rust toolchain in the CI (dragoon/komodo!195)

this is to avoid having to change the toolchain in the CI everytime.

`rust-toolchain.toml` and `.gitlab-ci.yml` will have to be updated in pairs when bumping / changing the Rust toolchain.
---
 .gitlab-ci.yml      | 3 ++-
 rust-toolchain.toml | 1 +
 2 files changed, 3 insertions(+), 1 deletion(-)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 625f83b..daa0125 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -1,4 +1,5 @@
-image: "rust:latest"
+# WARNING: update `rust-toolchain.toml` as well
+image: "rust:1.78"
 
 stages:
   - fmt
diff --git a/rust-toolchain.toml b/rust-toolchain.toml
index 2c00fd6..f8eeac8 100644
--- a/rust-toolchain.toml
+++ b/rust-toolchain.toml
@@ -1,4 +1,5 @@
 [toolchain]
 profile = "minimal"
+# WARNING: update `.gitlab-ci.yml` as well
 channel = "1.78"
 components = ["rustfmt", "clippy", "rust-analyzer"]
-- 
GitLab