diff options
| author | veetaha <veetaha2@gmail.com> | 2020-05-23 04:58:22 +0300 |
|---|---|---|
| committer | veetaha <veetaha2@gmail.com> | 2020-05-31 03:10:23 +0300 |
| commit | 030d78345fa79af07f8ebd89a9d244576fac992b (patch) | |
| tree | 935da29fbb0418e8158e06f227f238bda13ee55f /editors/code/src/cargo.ts | |
| parent | 5f7225446e75509ae0d971a6f3e2b9d3e37d6f2a (diff) | |
| download | rust-030d78345fa79af07f8ebd89a9d244576fac992b.tar.gz rust-030d78345fa79af07f8ebd89a9d244576fac992b.zip | |
Fix invoking cargo without consulting CARGO or standard installation paths
Diffstat (limited to 'editors/code/src/cargo.ts')
| -rw-r--r-- | editors/code/src/cargo.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/editors/code/src/cargo.ts b/editors/code/src/cargo.ts index a55b2f860f6..46cd3d77784 100644 --- a/editors/code/src/cargo.ts +++ b/editors/code/src/cargo.ts @@ -126,8 +126,8 @@ export class Cargo { } } -// Mirrors `ra_env::get_path_for_executable` implementation -function getCargoPathOrFail(): string { +// Mirrors `ra_toolchain::cargo()` implementation +export function getCargoPathOrFail(): string { const envVar = process.env.CARGO; const executableName = "cargo"; |
