aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--crates/ra_editor/src/scope/fn_scope.rs8
1 files changed, 0 insertions, 8 deletions
diff --git a/crates/ra_editor/src/scope/fn_scope.rs b/crates/ra_editor/src/scope/fn_scope.rs
index 67eb8e2ab..a99bd1822 100644
--- a/crates/ra_editor/src/scope/fn_scope.rs
+++ b/crates/ra_editor/src/scope/fn_scope.rs
@@ -350,14 +350,6 @@ mod tests {
350 350
351 fn do_check_local_name(code: &str, expected_offset: u32) { 351 fn do_check_local_name(code: &str, expected_offset: u32) {
352 let (off, code) = extract_offset(code); 352 let (off, code) = extract_offset(code);
353 let code = {
354 let mut buf = String::new();
355 let off = u32::from(off) as usize;
356 buf.push_str(&code[..off]);
357 buf.push_str(&code[off..]);
358 buf
359 };
360
361 let file = File::parse(&code); 353 let file = File::parse(&code);
362 let fn_def: ast::FnDef = find_node_at_offset(file.syntax(), off).unwrap(); 354 let fn_def: ast::FnDef = find_node_at_offset(file.syntax(), off).unwrap();
363 let name_ref: ast::NameRef = find_node_at_offset(file.syntax(), off).unwrap(); 355 let name_ref: ast::NameRef = find_node_at_offset(file.syntax(), off).unwrap();