Add "Run" lens for binary runnables

This commit is contained in:
Kirill Bulatov 2019-07-16 14:22:44 +03:00
parent 6deeabf686
commit 1037242e6e

View file

@ -695,7 +695,7 @@ pub fn handle_code_lens(
let title = match &runnable.kind {
RunnableKind::Test { .. } | RunnableKind::TestMod { .. } => Some("Run Test"),
RunnableKind::Bench { .. } => Some("Run Bench"),
_ => None,
RunnableKind::Bin => Some("Run"),
};
if let Some(title) = title {