aboutsummaryrefslogtreecommitdiff
path: root/crates/assists/src/handlers
diff options
context:
space:
mode:
Diffstat (limited to 'crates/assists/src/handlers')
-rw-r--r--crates/assists/src/handlers/fix_visibility.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/crates/assists/src/handlers/fix_visibility.rs b/crates/assists/src/handlers/fix_visibility.rs
index aa6aed9c2..f5cd5f9da 100644
--- a/crates/assists/src/handlers/fix_visibility.rs
+++ b/crates/assists/src/handlers/fix_visibility.rs
@@ -151,7 +151,8 @@ fn target_data_for_def(
151 S: HasSource<Ast = Ast>, 151 S: HasSource<Ast = Ast>,
152 Ast: AstNode + ast::VisibilityOwner, 152 Ast: AstNode + ast::VisibilityOwner,
153 { 153 {
154 let source = x.source(db)?; 154 #[allow(deprecated)]
155 let source = x.source_old(db);
155 let in_file_syntax = source.syntax(); 156 let in_file_syntax = source.syntax();
156 let file_id = in_file_syntax.file_id; 157 let file_id = in_file_syntax.file_id;
157 let syntax = in_file_syntax.value; 158 let syntax = in_file_syntax.value;