Skip to content

Commit 7169129

Browse files
committed
bump deps
1 parent 9381ab6 commit 7169129

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

cpp-linter-lib/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,12 @@ log = ">=0.4.20"
1515
openssl = { version = "0.10", features = ["vendored"], optional = true }
1616
openssl-probe = { version = "0.1", optional = true }
1717
regex = "1.10.2"
18-
reqwest = { version = "0.11", features = ["blocking", "json"] }
18+
reqwest = { version = "0.12.5", features = ["blocking", "json"] }
1919
semver = "1.0.20"
2020
serde = { version = "1.0.193", features = ["derive"] }
2121
serde-xml-rs = "0.6.0"
2222
serde_json = "1.0.108"
23-
which = "5.0.0"
23+
which = "6.0.2"
2424

2525
[dev-dependencies]
2626
tempfile = "3.9.0"

cpp-linter-py/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ name = "cpp_linter"
1212
crate-type = ["cdylib"]
1313

1414
[dependencies]
15-
pyo3 = { version = "0.20.0", features = ["extension-module"] }
15+
pyo3 = { version = "0.22.2", features = ["extension-module"] }
1616
cpp-linter-lib = { path = "../cpp-linter-lib", version = "*" }
1717

1818
[features]

cpp-linter-py/src/lib.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@ fn main(args: Vec<String>) -> PyResult<i32> {
1212
/// ``cpp_linter.run`` whose only exposed function is used as the entrypoint script.
1313
/// See the pure python sources in this repo's cpp_linter folder (located at repo root).
1414
#[pymodule]
15-
fn cpp_linter(_py: Python, m: &PyModule) -> PyResult<()> {
16-
let run_submodule = PyModule::new(_py, "run")?;
15+
fn cpp_linter(m: &Bound<'_, PyModule>) -> PyResult<()> {
16+
let run_submodule = PyModule::new_bound(m.py(), "run")?;
1717
run_submodule.add_function(wrap_pyfunction!(main, m)?)?;
18-
m.add_submodule(run_submodule)?;
18+
m.add_submodule(&run_submodule)?;
1919
Ok(())
2020
}

0 commit comments

Comments
 (0)