Skip to content

Commit

Permalink
rust-analyzer-root: Use active toolchain
Browse files Browse the repository at this point in the history
  • Loading branch information
cdown committed Jun 20, 2024
1 parent 04a739f commit 5525310
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bin/rust-analyzer-root
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@
# rust-analyzer, but it works at non root (root should be VCS top)

cd "$(git rev-parse --show-toplevel)"
toolchain=$(rustup default | awk '{ print $1 }')
toolchain=$(rustup show active-toolchain | awk '{ print $1 }')
exec rustup run "$toolchain" rust-analyzer

0 comments on commit 5525310

Please sign in to comment.