aboutsummaryrefslogtreecommitdiff
path: root/crates
diff options
context:
space:
mode:
Diffstat (limited to 'crates')
-rw-r--r--crates/ra_ide_api_light/src/assists/introduce_variable.rs14
1 files changed, 0 insertions, 14 deletions
diff --git a/crates/ra_ide_api_light/src/assists/introduce_variable.rs b/crates/ra_ide_api_light/src/assists/introduce_variable.rs
index 230d23039..922f71254 100644
--- a/crates/ra_ide_api_light/src/assists/introduce_variable.rs
+++ b/crates/ra_ide_api_light/src/assists/introduce_variable.rs
@@ -61,20 +61,6 @@ fn anchor_stmt(expr: &ast::Expr) -> Option<&SyntaxNode> {
61 }) 61 })
62} 62}
63 63
64fn is_semi_right_after(node: &SyntaxNode) -> bool {
65 let mut node = node;
66 loop {
67 if let Some(next) = node.next_sibling() {
68 if next.kind() == WHITESPACE {
69 node = next;
70 continue;
71 }
72 return next.kind() == SEMI;
73 }
74 return false;
75 }
76}
77
78#[cfg(test)] 64#[cfg(test)]
79mod tests { 65mod tests {
80 use super::*; 66 use super::*;