Skip to content

Commit 12f2c9d

Browse files
mmahroussfda-odoo
authored andcommitted
[FIX] server: fix build from hover borrow error
1 parent 1a9db83 commit 12f2c9d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

server/src/features/ast_utils.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ impl AstUtils {
1818
pub fn get_symbols(session: &mut SessionInfo, file_symbol: &Rc<RefCell<Symbol>>, file_info: &Rc<RefCell<FileInfo>>, offset: u32) -> (AnalyzeAstResult, Option<TextRange>, Option<ExprCall>) {
1919
let mut expr: Option<ExprOrIdent> = None;
2020
let mut call_expr: Option<ExprCall> = None;
21-
let mut file_info_borrowed = file_info.borrow_mut();
21+
let file_info_borrowed = file_info.borrow();
2222
let file_info_ast = file_info_borrowed.file_info_ast.borrow();
2323
for stmt in file_info_ast.ast.as_ref().unwrap().iter() {
2424
(expr, call_expr) = ExprFinderVisitor::find_expr_at(stmt, offset);

0 commit comments

Comments
 (0)