Merge get_sysroot_src into the constructor

This commit is contained in:
mo8it
2024-03-25 03:49:10 +01:00
parent efa9f57048
commit 51712cc19f
2 changed files with 39 additions and 43 deletions

View File

@@ -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");