Use which instead of running rustc --version

This commit is contained in:
mo8it
2024-03-25 00:30:01 +01:00
parent 9c6f56b836
commit 51b4c240ed
3 changed files with 57 additions and 14 deletions

View File

@@ -19,6 +19,7 @@ regex = "1.10.3"
serde_json = "1.0.114"
serde = { version = "1.0.197", features = ["derive"] }
toml = "0.8.10"
which = "6.0.1"
[[bin]]
name = "rustlings"