diff options
Diffstat (limited to 'crates')
-rw-r--r-- | crates/ra_analysis/tests/tests.rs | 2 | ||||
-rw-r--r-- | crates/ra_editor/src/assists/change_visibility.rs | 5 |
2 files changed, 1 insertions, 6 deletions
diff --git a/crates/ra_analysis/tests/tests.rs b/crates/ra_analysis/tests/tests.rs index bcf29d29c..c2ef87b54 100644 --- a/crates/ra_analysis/tests/tests.rs +++ b/crates/ra_analysis/tests/tests.rs | |||
@@ -531,7 +531,7 @@ fn test_rename_for_mut_param() { | |||
531 | fn test_rename(text: &str, new_name: &str, expected: &str) { | 531 | fn test_rename(text: &str, new_name: &str, expected: &str) { |
532 | let (analysis, position) = single_file_with_position(text); | 532 | let (analysis, position) = single_file_with_position(text); |
533 | let edits = analysis.rename(position, new_name).unwrap(); | 533 | let edits = analysis.rename(position, new_name).unwrap(); |
534 | let mut text_edit_bulder = ra_text_edit::TextEditBuilder::new(); | 534 | let mut text_edit_bulder = ra_text_edit::TextEditBuilder::default(); |
535 | let mut file_id: Option<FileId> = None; | 535 | let mut file_id: Option<FileId> = None; |
536 | for edit in edits { | 536 | for edit in edits { |
537 | file_id = Some(edit.file_id); | 537 | file_id = Some(edit.file_id); |
diff --git a/crates/ra_editor/src/assists/change_visibility.rs b/crates/ra_editor/src/assists/change_visibility.rs index 379e88d3c..e2cd9ffd1 100644 --- a/crates/ra_editor/src/assists/change_visibility.rs +++ b/crates/ra_editor/src/assists/change_visibility.rs | |||
@@ -62,11 +62,6 @@ mod tests { | |||
62 | check_assist(change_visibility, "m<|>od {}", "<|>pub(crate) mod {}"); | 62 | check_assist(change_visibility, "m<|>od {}", "<|>pub(crate) mod {}"); |
63 | check_assist( | 63 | check_assist( |
64 | change_visibility, | 64 | change_visibility, |
65 | "pub(crate) f<|>n foo() {}", | ||
66 | "pub(crate) f<|>n foo() {}", | ||
67 | ); | ||
68 | check_assist( | ||
69 | change_visibility, | ||
70 | "unsafe f<|>n foo() {}", | 65 | "unsafe f<|>n foo() {}", |
71 | "<|>pub(crate) unsafe fn foo() {}", | 66 | "<|>pub(crate) unsafe fn foo() {}", |
72 | ); | 67 | ); |