diff options
| author | mo8it <mo8it@proton.me> | 2024-03-25 03:49:10 +0100 |
|---|---|---|
| committer | mo8it <mo8it@proton.me> | 2024-03-25 03:49:10 +0100 |
| commit | 51712cc19f97972f470c4d8791974f8eaba095d1 (patch) | |
| tree | 6270e829250cfe810f28aeb632b26b3e11c84214 /src/main.rs | |
| parent | efa9f5704853acda6874725004b480d720683faf (diff) | |
Merge get_sysroot_src into the constructor
Diffstat (limited to 'src/main.rs')
| -rw-r--r-- | src/main.rs | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/main.rs b/src/main.rs index 4a4f219..4ce0b30 100644 --- a/src/main.rs +++ b/src/main.rs @@ -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"); |
