File tree Expand file tree Collapse file tree 2 files changed +7
-11
lines changed Expand file tree Collapse file tree 2 files changed +7
-11
lines changed Original file line number Diff line number Diff line change @@ -74,16 +74,6 @@ impl Runnable {
74
74
}
75
75
}
76
76
77
- pub fn can_debug ( & self ) -> bool {
78
- match self . kind {
79
- RunnableKind :: DocTest { .. } => false ,
80
- RunnableKind :: TestMod { .. }
81
- | RunnableKind :: Test { .. }
82
- | RunnableKind :: Bench { .. }
83
- | RunnableKind :: Bin => true ,
84
- }
85
- }
86
-
87
77
pub fn title ( & self ) -> String {
88
78
let mut s = String :: from ( "▶\u{fe0e} Run " ) ;
89
79
if self . use_name_in_title {
Original file line number Diff line number Diff line change @@ -998,7 +998,13 @@ pub(crate) fn code_lens(
998
998
let annotation_range = range ( & line_index, annotation. range ) ;
999
999
1000
1000
let title = run. title ( ) ;
1001
- let can_debug = run. can_debug ( ) ;
1001
+ let can_debug = match run. kind {
1002
+ ide:: RunnableKind :: DocTest { .. } => false ,
1003
+ ide:: RunnableKind :: TestMod { .. }
1004
+ | ide:: RunnableKind :: Test { .. }
1005
+ | ide:: RunnableKind :: Bench { .. }
1006
+ | ide:: RunnableKind :: Bin => true ,
1007
+ } ;
1002
1008
let r = runnable ( snap, run) ?;
1003
1009
1004
1010
let lens_config = snap. config . lens ( ) ;
You can’t perform that action at this time.
0 commit comments