aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_ide
diff options
context:
space:
mode:
Diffstat (limited to 'crates/ra_ide')
-rw-r--r--crates/ra_ide/src/ssr.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/crates/ra_ide/src/ssr.rs b/crates/ra_ide/src/ssr.rs
index 63010677a..4348b43be 100644
--- a/crates/ra_ide/src/ssr.rs
+++ b/crates/ra_ide/src/ssr.rs
@@ -59,11 +59,11 @@ pub fn parse_search_replace(
59 rule: &str, 59 rule: &str,
60 parse_only: bool, 60 parse_only: bool,
61 db: &RootDatabase, 61 db: &RootDatabase,
62 position: FilePosition, 62 resolve_context: FilePosition,
63 selections: Vec<FileRange>, 63 selections: Vec<FileRange>,
64) -> Result<Vec<SourceFileEdit>, SsrError> { 64) -> Result<Vec<SourceFileEdit>, SsrError> {
65 let rule: SsrRule = rule.parse()?; 65 let rule: SsrRule = rule.parse()?;
66 let mut match_finder = MatchFinder::in_context(db, position, selections); 66 let mut match_finder = MatchFinder::in_context(db, resolve_context, selections);
67 match_finder.add_rule(rule)?; 67 match_finder.add_rule(rule)?;
68 if parse_only { 68 if parse_only {
69 return Ok(Vec::new()); 69 return Ok(Vec::new());