diff options
author | vsrs <[email protected]> | 2021-02-27 16:07:14 +0000 |
---|---|---|
committer | vsrs <[email protected]> | 2021-02-27 16:07:14 +0000 |
commit | 31f5f816e3747c1a0972d2f0aca25ded9980cd36 (patch) | |
tree | 587dfb041597441ea0a60fdb8aa0ab0a52c63edd /crates/rust-analyzer/src/to_proto.rs | |
parent | 5d23d8bc299b718e7f026a7e6c1363dde3342817 (diff) |
Remove unnecessary file_id argument
Diffstat (limited to 'crates/rust-analyzer/src/to_proto.rs')
-rw-r--r-- | crates/rust-analyzer/src/to_proto.rs | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/crates/rust-analyzer/src/to_proto.rs b/crates/rust-analyzer/src/to_proto.rs index 70cb7fbab..e8fd9bb28 100644 --- a/crates/rust-analyzer/src/to_proto.rs +++ b/crates/rust-analyzer/src/to_proto.rs | |||
@@ -828,11 +828,10 @@ pub(crate) fn resolved_code_action( | |||
828 | 828 | ||
829 | pub(crate) fn runnable( | 829 | pub(crate) fn runnable( |
830 | snap: &GlobalStateSnapshot, | 830 | snap: &GlobalStateSnapshot, |
831 | file_id: FileId, | ||
832 | runnable: Runnable, | 831 | runnable: Runnable, |
833 | ) -> Result<lsp_ext::Runnable> { | 832 | ) -> Result<lsp_ext::Runnable> { |
834 | let config = snap.config.runnables(); | 833 | let config = snap.config.runnables(); |
835 | let spec = CargoTargetSpec::for_file(snap, file_id)?; | 834 | let spec = CargoTargetSpec::for_file(snap, runnable.nav.file_id)?; |
836 | let workspace_root = spec.as_ref().map(|it| it.workspace_root.clone()); | 835 | let workspace_root = spec.as_ref().map(|it| it.workspace_root.clone()); |
837 | let target = spec.as_ref().map(|s| s.target.clone()); | 836 | let target = spec.as_ref().map(|s| s.target.clone()); |
838 | let (cargo_args, executable_args) = | 837 | let (cargo_args, executable_args) = |
@@ -865,7 +864,7 @@ pub(crate) fn code_lens( | |||
865 | let annotation_range = range(&line_index, annotation.range); | 864 | let annotation_range = range(&line_index, annotation.range); |
866 | 865 | ||
867 | let action = run.action(); | 866 | let action = run.action(); |
868 | let r = runnable(&snap, run.nav.file_id, run)?; | 867 | let r = runnable(&snap, run)?; |
869 | 868 | ||
870 | let command = if debug { | 869 | let command = if debug { |
871 | command::debug_single(&r) | 870 | command::debug_single(&r) |