Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'crates/ide-db/src/imports/insert_use/tests.rs')
-rw-r--r--crates/ide-db/src/imports/insert_use/tests.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/crates/ide-db/src/imports/insert_use/tests.rs b/crates/ide-db/src/imports/insert_use/tests.rs
index 33db7178d6..a30d290490 100644
--- a/crates/ide-db/src/imports/insert_use/tests.rs
+++ b/crates/ide-db/src/imports/insert_use/tests.rs
@@ -1430,7 +1430,7 @@ fn check_merge_only_fail(ra_fixture0: &str, ra_fixture1: &str, mb: MergeBehavior
.find_map(ast::Use::cast)
.unwrap();
- let editor = SyntaxEditor::new(use0.syntax().ancestors().last().unwrap()).0;
+ let (editor, _) = SyntaxEditor::new(use0.syntax().ancestors().last().unwrap());
let result = try_merge_imports(&editor, &use0, &use1, mb);
assert_eq!(result.map(|u| u.to_string()), None);
}
@@ -1496,7 +1496,7 @@ fn check_merge(ra_fixture0: &str, ra_fixture1: &str, last: &str, mb: MergeBehavi
.find_map(ast::Use::cast)
.unwrap();
- let editor = SyntaxEditor::new(use0.syntax().ancestors().last().unwrap()).0;
+ let (editor, _) = SyntaxEditor::new(use0.syntax().ancestors().last().unwrap());
let result = try_merge_imports(&editor, &use0, &use1, mb);
assert_eq!(result.map(|u| u.to_string().trim().to_owned()), Some(last.trim().to_owned()));
}
@@ -1527,7 +1527,7 @@ fn merge_gated_imports_with_different_values() {
.find_map(ast::Use::cast)
.unwrap();
- let editor = SyntaxEditor::new(use0.syntax().ancestors().last().unwrap()).0;
+ let (editor, _) = SyntaxEditor::new(use0.syntax().ancestors().last().unwrap());
let result = try_merge_imports(&editor, &use0, &use1, MergeBehavior::Crate);
assert_eq!(result, None);
}