mirror of
https://git.aramjonghu.dev/AramJonghu/rustlings.git
synced 2026-09-05 09:43:31 +02:00
Merge get_sysroot_src into the constructor
This commit is contained in:
+1
-4
@@ -204,10 +204,7 @@ fn main() -> Result<()> {
|
||||
}
|
||||
|
||||
Subcommands::Lsp => {
|
||||
let mut project = RustAnalyzerProject::new();
|
||||
project
|
||||
.get_sysroot_src()
|
||||
.expect("Couldn't find toolchain path, do you have `rustc` installed?");
|
||||
let mut project = RustAnalyzerProject::build()?;
|
||||
project
|
||||
.exercises_to_json()
|
||||
.expect("Couldn't parse rustlings exercises files");
|
||||
|
||||
Reference in New Issue
Block a user