Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'editors/code/src/debug.ts')
-rw-r--r--editors/code/src/debug.ts5
1 files changed, 2 insertions, 3 deletions
diff --git a/editors/code/src/debug.ts b/editors/code/src/debug.ts
index c2da2ea4e3..f23e368093 100644
--- a/editors/code/src/debug.ts
+++ b/editors/code/src/debug.ts
@@ -5,7 +5,7 @@ import type * as ra from "./lsp_ext";
import { Cargo, getRustcId, getSysroot } from "./toolchain";
import type { Ctx } from "./ctx";
-import { createCargoArgs, prepareEnv } from "./run";
+import { prepareEnv } from "./run";
import { isCargoRunnableArgs, unwrapUndefinable } from "./util";
const debugOutput = vscode.window.createOutputChannel("Debug");
@@ -180,8 +180,7 @@ async function getDebugExecutable(
env: Record<string, string>,
): Promise<string> {
const cargo = new Cargo(runnableArgs.workspaceRoot || ".", debugOutput, env);
- const args = createCargoArgs(runnableArgs);
- const executable = await cargo.executableFromArgs(args);
+ const executable = await cargo.executableFromArgs(runnableArgs);
// if we are here, there were no compilation errors.
return executable;