Skip to content

Commit 84fda05

Browse files
committed
[UPG] update cargo deps and handle warnings
1 parent 5d6b973 commit 84fda05

File tree

3 files changed

+22
-22
lines changed

3 files changed

+22
-22
lines changed

server/Cargo.toml

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -6,41 +6,41 @@ authors = ["Odoo"]
66
readme = "../README.md"
77
repository = "https://github.com/odoo/odoo-ls"
88
license = "../LICENSE"
9-
rust-version = "1.91"
9+
rust-version = "1.93"
1010

1111
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
1212

1313
[dependencies]
14-
anyhow = "1.0.98"
15-
clap = { version = "4.5.43", features = ["derive"] }
16-
glob = "0.3.2"
17-
regex = "1.11.1"
18-
ruff_python_ast = { git = "https://github.com/astral-sh/ruff", tag = "0.14.4", version = "0.0.0" }
19-
ruff_python_parser = { git = "https://github.com/astral-sh/ruff", tag = "0.14.4", version = "0.0.0" }
20-
ruff_text_size = { git = "https://github.com/astral-sh/ruff", tag = "0.14.4", version = "0.0.0" }
21-
ruff_source_file = { git = "https://github.com/astral-sh/ruff", tag = "0.14.4", version = "0.0.0" }
14+
anyhow = "1.0.101"
15+
clap = { version = "4.5.57", features = ["derive"] }
16+
glob = "0.3.3"
17+
regex = "1.12.3"
18+
ruff_python_ast = { git = "https://github.com/astral-sh/ruff", tag = "0.15.0", version = "0.0.0" }
19+
ruff_python_parser = { git = "https://github.com/astral-sh/ruff", tag = "0.15.0", version = "0.0.0" }
20+
ruff_text_size = { git = "https://github.com/astral-sh/ruff", tag = "0.15.0", version = "0.0.0" }
21+
ruff_source_file = { git = "https://github.com/astral-sh/ruff", tag = "0.15.0", version = "0.0.0" }
2222
lsp-server = { git = "https://github.com/rust-lang/rust-analyzer", tag = "2025-08-04", version = "0.7.6" }
23-
serde = "1.0.219"
24-
serde_json = "1.0.142"
25-
url = "2.5.4"
23+
serde = "1.0.228"
24+
serde_json = "1.0.149"
25+
url = "2.5.8"
2626
weak-table = "0.3.2"
2727
lsp-types = "0.97.0"
2828
crossbeam-channel = "0.5.15"
2929
path-slash = "0.2.1"
30-
tracing = "0.1.41"
31-
tracing-subscriber = "0.3.19"
32-
tracing-appender = "0.2.3"
30+
tracing = "0.1.44"
31+
tracing-subscriber = "0.3.22"
32+
tracing-appender = "0.2.4"
3333
tracing-panic = "0.1.2"
3434
winapi = { version = "0.3.9", features = ["winbase", "processthreadsapi", "synchapi", "handleapi"] }
35-
ctrlc = "3.4.7"
35+
ctrlc = "3.5.1"
3636
once_cell = "1.21.3"
3737
itertools = "0.14.0"
3838
byteyarn = "0.5.1"
3939
roxmltree = "0.20.0"
4040
dirs = "5.0"
41-
toml = "0.8.23"
42-
schemars = "1.0.4"
43-
csv = "1.3.1"
41+
toml = "0.9.11"
42+
schemars = "1.2.1"
43+
csv = "1.4.0"
4444
# ittapi = "0.3" # profiling with VTune profiler
4545
[target.'cfg(any(target_os = "linux", target_os = "macos"))'.dependencies]
4646
nix = { version = "0.29.0", features = ["process"] }

server/src/core/file_mgr.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
use ruff_python_ast::{ModModule, PySourceType, Stmt};
2-
use ruff_python_parser::{Parsed, Token, TokenKind};
1+
use ruff_python_ast::{ModModule, PySourceType, Stmt, token::{Token, TokenKind}};
2+
use ruff_python_parser::Parsed;
33
use lsp_types::{Diagnostic, DiagnosticSeverity, MessageType, NumberOrString, Position, PublishDiagnosticsParams, Range, TextDocumentContentChangeEvent};
44
use lsp_types::notification::{Notification, PublishDiagnostics};
55
use ruff_source_file::{OneIndexed, PositionEncoding, SourceLocation};

server/src/core/symbols/symbol.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2849,7 +2849,7 @@ impl Symbol {
28492849
) -> (Vec<Rc<RefCell<Symbol>>>, Vec<Diagnostic>) {
28502850
let mut result: Vec<Rc<RefCell<Symbol>>> = vec![];
28512851
let mut visited_symbols: PtrWeakHashSet<Weak<RefCell<Symbol>>> = PtrWeakHashSet::new();
2852-
let mut extend_result = |syms: Vec<Rc<RefCell<Symbol>>>, result: &mut Vec<Rc<RefCell<Symbol>>>, visited_symbols: &mut PtrWeakHashSet<Weak<RefCell<Symbol>>>| {
2852+
let extend_result = |syms: Vec<Rc<RefCell<Symbol>>>, result: &mut Vec<Rc<RefCell<Symbol>>>, visited_symbols: &mut PtrWeakHashSet<Weak<RefCell<Symbol>>>| {
28532853
syms.iter().for_each(|sym|{
28542854
if !visited_symbols.contains(sym){
28552855
visited_symbols.insert(sym.clone());

0 commit comments

Comments
 (0)