aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_ide_api/src/extend_selection.rs
diff options
context:
space:
mode:
authorbors[bot] <bors[bot]@users.noreply.github.com>2019-01-20 18:17:18 +0000
committerbors[bot] <bors[bot]@users.noreply.github.com>2019-01-20 18:17:18 +0000
commitb89f8b6b4929ec09be4f9b13f87ad56b3235bd39 (patch)
tree0cdaf64f538467c3f5a974cac51413f495250f06 /crates/ra_ide_api/src/extend_selection.rs
parent3508ba9bc2c2180a6495238c2fafa493557f36d0 (diff)
parent73836cdbbc928f3512156f0bc0166e5a39ad9864 (diff)
Merge #580
580: extend selection expands macros and can totally panic r=matklad a=matklad Co-authored-by: Aleksey Kladov <[email protected]>
Diffstat (limited to 'crates/ra_ide_api/src/extend_selection.rs')
-rw-r--r--crates/ra_ide_api/src/extend_selection.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/ra_ide_api/src/extend_selection.rs b/crates/ra_ide_api/src/extend_selection.rs
index 9f0ab2f1c..718b4def5 100644
--- a/crates/ra_ide_api/src/extend_selection.rs
+++ b/crates/ra_ide_api/src/extend_selection.rs
@@ -51,7 +51,7 @@ mod tests {
51 } 51 }
52 ", 52 ",
53 ); 53 );
54 let r = analysis.extend_selection(frange); 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(51.into(), 56.into()));
56 } 56 }
57} 57}