Use the parsed exercises instead of glob

This commit is contained in:
mo8it
2024-03-25 22:20:00 +01:00
parent b932ed1f67
commit 87e55ccffd
3 changed files with 14 additions and 24 deletions

View File

@@ -206,7 +206,7 @@ fn main() -> Result<()> {
Subcommands::Lsp => {
let mut project = RustAnalyzerProject::build()?;
project
.exercises_to_json()
.exercises_to_json(exercises)
.expect("Couldn't parse rustlings exercises files");
if project.crates.is_empty() {