From fa6f78c95bd0bf647eda7339e5b317dea0f4d649 Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Sun, 11 Jul 2021 13:43:43 +0300 Subject: [PATCH] better name --- crates/ide/src/runnables.rs | 2 +- crates/rust-analyzer/src/to_proto.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/ide/src/runnables.rs b/crates/ide/src/runnables.rs index c1a068170bb6..b748d84ecc01 100644 --- a/crates/ide/src/runnables.rs +++ b/crates/ide/src/runnables.rs @@ -74,7 +74,7 @@ impl Runnable { } } - pub fn debugee(&self) -> bool { + pub fn can_debug(&self) -> bool { matches!( &self.kind, RunnableKind::TestMod { .. } diff --git a/crates/rust-analyzer/src/to_proto.rs b/crates/rust-analyzer/src/to_proto.rs index 0e18581a3186..f270d9de95a5 100644 --- a/crates/rust-analyzer/src/to_proto.rs +++ b/crates/rust-analyzer/src/to_proto.rs @@ -998,7 +998,7 @@ pub(crate) fn code_lens( let annotation_range = range(&line_index, annotation.range); let title = run.title(); - let can_debug = run.debugee(); + let can_debug = run.can_debug(); let r = runnable(snap, run)?; let lens_config = snap.config.lens();