Repository: ALU-Schumacher/AUDITOR (language: rust)

Issue:
Clippy CI is currently failing
Currently, the Clippy CI for AUDITOR is failing with:

```
error: lifetime may not live long enough
  --> auditor/src/domain/score.rs:34:41
   |
34 | #[derive(Debug, Serialize, Deserialize, sqlx::Type, Clone)]
   |                                         ^^^^^^^^^^
   |                                         |
   |                                         lifetime `'r` defined here
   |                                         requires that `'r` must outlive `'static`
   |
note: due to current limitations in the borrow checker, this implies a `'static` lifetime
  --> /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/sqlx-postgres-0.7.4/src/types/record.rs:97:12
   |
97 |         T: for<'a> Decode<'a, Postgres> + Type<Postgres>,
   |            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   = note: this error originates in the derive macro `sqlx::Type` (in Nightly builds, run with -Z macro-backtrace for more info)

error: implementation of `sqlx::Decode` is not general enough
  --> auditor/src/domain/score.rs:34:41
   |
34 | #[derive(Debug, Serialize, Deserialize, sqlx::Type, Clone)]
   |                                         ^^^^^^^^^^ implementation of `sqlx::Decode` is not general enough
   |
   = note: `domain::validname::ValidName` must implement `sqlx::Decode<'0, sqlx::Postgres>`, for any lifetime `'0`...
   = note: ...but it actually implements `sqlx::Decode<'1, sqlx::Postgres>`, for some specific lifetime `'1`
   = note: this error originates in the derive macro `sqlx::Type` (in Nightly builds, run with -Z macro-backtrace for more info)

error: implementation of `sqlx::Decode` is not general enough
  --> auditor/src/domain/score.rs:34:41
   |
34 | #[derive(Debug, Serialize, Deserialize, sqlx::Type, Clone)]
   |                                         ^^^^^^^^^^ implementation of `sqlx::Decode` is not general enough
   |
   = note: `domain::validvalue::ValidValue` must implement `sqlx::Decode<'0, sqlx::Postgres>`, for any lifetime `'0`...
   = note: ...but it actually implements `sqlx::Decode<'1, sqlx::Postgres>`, for some specific lifetime `'1`
   = note: this error originates in the derive macro `sqlx::Type` (in Nightly builds, run with -Z macro-backtrace for more info)
```

As a reminder, we are using the beta channel to run clippy.

This error occurred after the beta channel has been updated to `rustc 1.79.0-beta.1`

We either fix this warnings now or move the cargo check to the stable channel, as was already done for the coverage (see #739)


Discussion / hints:

Fix patch:
diff --git a/.github/workflows/general.yml b/.github/workflows/general.yml
index 7ae95cc08..986b6a925 100644
--- a/.github/workflows/general.yml
+++ b/.github/workflows/general.yml
@@ -104,7 +104,7 @@ jobs:
         uses: actions/checkout@v4
 
       - name: Install stable toolchain
-        uses: dtolnay/rust-toolchain@beta
+        uses: dtolnay/rust-toolchain@stable
         with:
           components: clippy
 
diff --git a/CHANGELOG.md b/CHANGELOG.md
index e21c49fc9..a6bff4a6e 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -14,6 +14,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
 
 ### Changed
 - Dependencies: Update serde_with from 3.7.0 to 3.8.0 ([@QuantumDancer](https://github.com/QuantumDancer))
+- CI: Switch to stable toolchain for clippy job (#793) ([@QuantumDancer](https://github.com/QuantumDancer))
 
 ### Removed
 


Test patch: