File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -20,6 +20,8 @@ struct Crate {
20
20
edition : & ' static str ,
21
21
// Not used, but required in the JSON file.
22
22
deps : Vec < ( ) > ,
23
+ // Only `test` is used for all crates.
24
+ // Therefore, an array is used instead of a `Vec`.
23
25
cfg : [ & ' static str ; 1 ] ,
24
26
}
25
27
@@ -31,7 +33,7 @@ impl RustAnalyzerProject {
31
33
root_module : exercise. path ,
32
34
edition : "2021" ,
33
35
deps : Vec :: new ( ) ,
34
- // This allows rust_analyzer to work inside #[test] blocks
36
+ // This allows rust_analyzer to work inside ` #[test]` blocks
35
37
cfg : [ "test" ] ,
36
38
} )
37
39
. collect ( ) ;
@@ -54,7 +56,6 @@ impl RustAnalyzerProject {
54
56
let toolchain =
55
57
String :: from_utf8 ( toolchain) . context ( "The toolchain path is invalid UTF8" ) ?;
56
58
let toolchain = toolchain. trim_end ( ) ;
57
-
58
59
println ! ( "Determined toolchain: {toolchain}\n " ) ;
59
60
60
61
let mut sysroot_src = PathBuf :: with_capacity ( 256 ) ;
You can’t perform that action at this time.
0 commit comments