Skip to content

Commit 94184d7

Browse files
committed
refactor: Rename CargoRunnable to CargoRunnableArgs
1 parent 1c5c95e commit 94184d7

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

crates/rust-analyzer/src/handlers/request.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -851,7 +851,7 @@ pub(crate) fn handle_runnables(
851851
),
852852
location: None,
853853
kind: lsp_ext::RunnableKind::Cargo,
854-
args: lsp_ext::CargoRunnable {
854+
args: lsp_ext::CargoRunnableArgs {
855855
workspace_root: Some(spec.workspace_root.clone().into()),
856856
override_cargo: config.override_cargo.clone(),
857857
cargo_args,
@@ -868,7 +868,7 @@ pub(crate) fn handle_runnables(
868868
label: "cargo check --workspace".to_owned(),
869869
location: None,
870870
kind: lsp_ext::RunnableKind::Cargo,
871-
args: lsp_ext::CargoRunnable {
871+
args: lsp_ext::CargoRunnableArgs {
872872
workspace_root: None,
873873
override_cargo: config.override_cargo,
874874
cargo_args: vec!["check".to_owned(), "--workspace".to_owned()],

crates/rust-analyzer/src/lsp/ext.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -423,7 +423,7 @@ pub struct Runnable {
423423
#[serde(skip_serializing_if = "Option::is_none")]
424424
pub location: Option<lsp_types::LocationLink>,
425425
pub kind: RunnableKind,
426-
pub args: CargoRunnable,
426+
pub args: CargoRunnableArgs,
427427
}
428428

429429
#[derive(Serialize, Deserialize, Debug)]
@@ -434,7 +434,7 @@ pub enum RunnableKind {
434434

435435
#[derive(Deserialize, Serialize, Debug)]
436436
#[serde(rename_all = "camelCase")]
437-
pub struct CargoRunnable {
437+
pub struct CargoRunnableArgs {
438438
// command to be executed instead of cargo
439439
pub override_cargo: Option<String>,
440440
#[serde(skip_serializing_if = "Option::is_none")]

crates/rust-analyzer/src/lsp/to_proto.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1361,7 +1361,7 @@ pub(crate) fn runnable(
13611361
label,
13621362
location: Some(location),
13631363
kind: lsp_ext::RunnableKind::Cargo,
1364-
args: lsp_ext::CargoRunnable {
1364+
args: lsp_ext::CargoRunnableArgs {
13651365
workspace_root: Some(workspace_root.into()),
13661366
override_cargo: config.override_cargo,
13671367
cargo_args,
@@ -1381,7 +1381,7 @@ pub(crate) fn runnable(
13811381
label,
13821382
location: Some(location),
13831383
kind: lsp_ext::RunnableKind::Cargo,
1384-
args: lsp_ext::CargoRunnable {
1384+
args: lsp_ext::CargoRunnableArgs {
13851385
workspace_root: None,
13861386
override_cargo: config.override_cargo,
13871387
cargo_args,

0 commit comments

Comments
 (0)