diff options
author | Aleksey Kladov <[email protected]> | 2019-02-01 07:52:36 +0000 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2019-02-01 07:52:36 +0000 |
commit | de85f1e94740d9a19066f7fda2e57d26973e472c (patch) | |
tree | 7346c0bed5398138702c83aafff7ee6752e821ab /crates/ra_ide_api/src/extend_selection.rs | |
parent | 9d3f4624e1a83eb945f4df6427fc650356ea77fa (diff) |
remove hard-coded support for ctry macro
It was used mainly to prevent HirFileId infra from bitroting, but the
`vec![]` macro can serve that just as well!
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 | } |