File tree Expand file tree Collapse file tree 3 files changed +6
-6
lines changed Expand file tree Collapse file tree 3 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -15,12 +15,12 @@ log = ">=0.4.20"
15
15
openssl = { version = " 0.10" , features = [" vendored" ], optional = true }
16
16
openssl-probe = { version = " 0.1" , optional = true }
17
17
regex = " 1.10.2"
18
- reqwest = { version = " 0.11 " , features = [" blocking" , " json" ] }
18
+ reqwest = { version = " 0.12.5 " , features = [" blocking" , " json" ] }
19
19
semver = " 1.0.20"
20
20
serde = { version = " 1.0.193" , features = [" derive" ] }
21
21
serde-xml-rs = " 0.6.0"
22
22
serde_json = " 1.0.108"
23
- which = " 5 .0.0 "
23
+ which = " 6 .0.2 "
24
24
25
25
[dev-dependencies ]
26
26
tempfile = " 3.9.0"
Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ name = "cpp_linter"
12
12
crate-type = [" cdylib" ]
13
13
14
14
[dependencies ]
15
- pyo3 = { version = " 0.20.0 " , features = [" extension-module" ] }
15
+ pyo3 = { version = " 0.22.2 " , features = [" extension-module" ] }
16
16
cpp-linter-lib = { path = " ../cpp-linter-lib" , version = " *" }
17
17
18
18
[features ]
Original file line number Diff line number Diff line change @@ -12,9 +12,9 @@ fn main(args: Vec<String>) -> PyResult<i32> {
12
12
/// ``cpp_linter.run`` whose only exposed function is used as the entrypoint script.
13
13
/// See the pure python sources in this repo's cpp_linter folder (located at repo root).
14
14
#[ 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" ) ?;
17
17
run_submodule. add_function ( wrap_pyfunction ! ( main, m) ?) ?;
18
- m. add_submodule ( run_submodule) ?;
18
+ m. add_submodule ( & run_submodule) ?;
19
19
Ok ( ( ) )
20
20
}
You can’t perform that action at this time.
0 commit comments