From a158c77d81f2b2870385f70b63511588ed6912ff Mon Sep 17 00:00:00 2001
From: mo8it <mo8it@proton.me>
Date: Mon, 25 Mar 2024 23:21:14 +0100
Subject: [PATCH] Add comment

---
 src/project.rs | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/src/project.rs b/src/project.rs
index acf011d..0f56de9 100644
--- a/src/project.rs
+++ b/src/project.rs
@@ -20,6 +20,8 @@ struct Crate {
     edition: &'static str,
     // Not used, but required in the JSON file.
     deps: Vec<()>,
+    // Only `test` is used for all crates.
+    // Therefore, an array is used instead of a `Vec`.
     cfg: [&'static str; 1],
 }
 
@@ -31,7 +33,7 @@ impl RustAnalyzerProject {
                 root_module: exercise.path,
                 edition: "2021",
                 deps: Vec::new(),
-                // This allows rust_analyzer to work inside #[test] blocks
+                // This allows rust_analyzer to work inside `#[test]` blocks
                 cfg: ["test"],
             })
             .collect();
@@ -54,7 +56,6 @@ impl RustAnalyzerProject {
         let toolchain =
             String::from_utf8(toolchain).context("The toolchain path is invalid UTF8")?;
         let toolchain = toolchain.trim_end();
-
         println!("Determined toolchain: {toolchain}\n");
 
         let mut sysroot_src = PathBuf::with_capacity(256);