mirror of
https://github.com/rust-lang/rust-analyzer
synced 2024-11-16 01:38:13 +00:00
fix the test
This commit is contained in:
parent
a4635a199b
commit
6be39ba758
2 changed files with 1 additions and 6 deletions
|
@ -531,7 +531,7 @@ fn test_rename_for_mut_param() {
|
|||
fn test_rename(text: &str, new_name: &str, expected: &str) {
|
||||
let (analysis, position) = single_file_with_position(text);
|
||||
let edits = analysis.rename(position, new_name).unwrap();
|
||||
let mut text_edit_bulder = ra_text_edit::TextEditBuilder::new();
|
||||
let mut text_edit_bulder = ra_text_edit::TextEditBuilder::default();
|
||||
let mut file_id: Option<FileId> = None;
|
||||
for edit in edits {
|
||||
file_id = Some(edit.file_id);
|
||||
|
|
|
@ -60,11 +60,6 @@ mod tests {
|
|||
"<|>pub(crate) trait Foo {}",
|
||||
);
|
||||
check_assist(change_visibility, "m<|>od {}", "<|>pub(crate) mod {}");
|
||||
check_assist(
|
||||
change_visibility,
|
||||
"pub(crate) f<|>n foo() {}",
|
||||
"pub(crate) f<|>n foo() {}",
|
||||
);
|
||||
check_assist(
|
||||
change_visibility,
|
||||
"unsafe f<|>n foo() {}",
|
||||
|
|
Loading…
Reference in a new issue