diff options
Diffstat (limited to 'crates/ra_ide_api/src/extend_selection.rs')
-rw-r--r-- | crates/ra_ide_api/src/extend_selection.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/crates/ra_ide_api/src/extend_selection.rs b/crates/ra_ide_api/src/extend_selection.rs index cd2ebe471..f61feaf1b 100644 --- a/crates/ra_ide_api/src/extend_selection.rs +++ b/crates/ra_ide_api/src/extend_selection.rs | |||
@@ -47,11 +47,11 @@ mod tests { | |||
47 | let (analysis, frange) = single_file_with_range( | 47 | let (analysis, frange) = single_file_with_range( |
48 | " | 48 | " |
49 | fn main() { | 49 | fn main() { |
50 | ctry!(foo(|x| <|>x<|>)); | 50 | vec![foo(|x| <|>x<|>)]; |
51 | } | 51 | } |
52 | ", | 52 | ", |
53 | ); | 53 | ); |
54 | let r = analysis.extend_selection(frange).unwrap(); | 54 | let r = analysis.extend_selection(frange).unwrap(); |
55 | assert_eq!(r, TextRange::from_to(51.into(), 56.into())); | 55 | assert_eq!(r, TextRange::from_to(50.into(), 55.into())); |
56 | } | 56 | } |
57 | } | 57 | } |