Skip to content

Update Rust crate pyo3 to v0.23.1 #711

Update Rust crate pyo3 to v0.23.1

Update Rust crate pyo3 to v0.23.1 #711

GitHub Actions / clippy succeeded Nov 15, 2024 in 0s

clippy

24 warnings

Details

Results

Message level Amount
Internal compiler error 0
Error 0
Warning 24
Note 0
Help 0

Versions

  • rustc 1.82.0 (f6e511eec 2024-10-15)
  • cargo 1.82.0 (8f40fc59f 2024-08-21)
  • clippy 0.1.82 (f6e511e 2024-10-15)

Annotations

Check warning on line 454 in src/types/value.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

use of deprecated method `pyo3::IntoPy::into_py`: `IntoPy` is going to be replaced by `IntoPyObject`. See the migration guide (https://pyo3.rs/v0.23/migration) for more information.

warning: use of deprecated method `pyo3::IntoPy::into_py`: `IntoPy` is going to be replaced by `IntoPyObject`. See the migration guide (https://pyo3.rs/v0.23/migration) for more information.
   --> src/types/value.rs:454:47
    |
454 |             Value::Null => Option::<()>::None.into_py(py),
    |                                               ^^^^^^^

Check warning on line 451 in src/types/value.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

use of deprecated method `pyo3::IntoPy::into_py`: `IntoPy` is going to be replaced by `IntoPyObject`. See the migration guide (https://pyo3.rs/v0.23/migration) for more information.

warning: use of deprecated method `pyo3::IntoPy::into_py`: `IntoPy` is going to be replaced by `IntoPyObject`. See the migration guide (https://pyo3.rs/v0.23/migration) for more information.
   --> src/types/value.rs:451:23
    |
451 |                 pyseq.into_py(py)
    |                       ^^^^^^^

Check warning on line 443 in src/types/value.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

use of deprecated method `pyo3::IntoPy::into_py`: `IntoPy` is going to be replaced by `IntoPyObject`. See the migration guide (https://pyo3.rs/v0.23/migration) for more information.

warning: use of deprecated method `pyo3::IntoPy::into_py`: `IntoPy` is going to be replaced by `IntoPyObject`. See the migration guide (https://pyo3.rs/v0.23/migration) for more information.
   --> src/types/value.rs:443:40
    |
443 |                     Option::<()>::None.into_py(py)
    |                                        ^^^^^^^

Check warning on line 441 in src/types/value.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

use of deprecated method `pyo3::IntoPy::into_py`: `IntoPy` is going to be replaced by `IntoPyObject`. See the migration guide (https://pyo3.rs/v0.23/migration) for more information.

warning: use of deprecated method `pyo3::IntoPy::into_py`: `IntoPy` is going to be replaced by `IntoPyObject`. See the migration guide (https://pyo3.rs/v0.23/migration) for more information.
   --> src/types/value.rs:441:41
    |
441 |                     n.as_f64().unwrap().into_py(py)
    |                                         ^^^^^^^

Check warning on line 439 in src/types/value.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

use of deprecated method `pyo3::IntoPy::into_py`: `IntoPy` is going to be replaced by `IntoPyObject`. See the migration guide (https://pyo3.rs/v0.23/migration) for more information.

warning: use of deprecated method `pyo3::IntoPy::into_py`: `IntoPy` is going to be replaced by `IntoPyObject`. See the migration guide (https://pyo3.rs/v0.23/migration) for more information.
   --> src/types/value.rs:439:41
    |
439 |                     n.as_u64().unwrap().into_py(py)
    |                                         ^^^^^^^

Check warning on line 437 in src/types/value.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

use of deprecated method `pyo3::IntoPy::into_py`: `IntoPy` is going to be replaced by `IntoPyObject`. See the migration guide (https://pyo3.rs/v0.23/migration) for more information.

warning: use of deprecated method `pyo3::IntoPy::into_py`: `IntoPy` is going to be replaced by `IntoPyObject`. See the migration guide (https://pyo3.rs/v0.23/migration) for more information.
   --> src/types/value.rs:437:41
    |
437 |                     n.as_i64().unwrap().into_py(py)
    |                                         ^^^^^^^

Check warning on line 432 in src/types/value.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

use of deprecated method `pyo3::IntoPy::into_py`: `IntoPy` is going to be replaced by `IntoPyObject`. See the migration guide (https://pyo3.rs/v0.23/migration) for more information.

warning: use of deprecated method `pyo3::IntoPy::into_py`: `IntoPy` is going to be replaced by `IntoPyObject`. See the migration guide (https://pyo3.rs/v0.23/migration) for more information.
   --> src/types/value.rs:432:33
    |
432 |             Value::Bool(b) => b.into_py(py),
    |                                 ^^^^^^^

Check warning on line 431 in src/types/value.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

use of deprecated method `pyo3::IntoPy::into_py`: `IntoPy` is going to be replaced by `IntoPyObject`. See the migration guide (https://pyo3.rs/v0.23/migration) for more information.

warning: use of deprecated method `pyo3::IntoPy::into_py`: `IntoPy` is going to be replaced by `IntoPyObject`. See the migration guide (https://pyo3.rs/v0.23/migration) for more information.
   --> src/types/value.rs:431:55
    |
431 |             Value::Literal(s) | Value::String(s) => s.into_py(py),
    |                                                       ^^^^^^^

Check warning on line 359 in src/types/mapping.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

use of deprecated associated function `pyo3::types::PyDict::new_bound`: renamed to `PyDict::new`

warning: use of deprecated associated function `pyo3::types::PyDict::new_bound`: renamed to `PyDict::new`
   --> src/types/mapping.rs:359:28
    |
359 |         let dict = PyDict::new_bound(py);
    |                            ^^^^^^^^^

Check warning on line 135 in src/types/from.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

use of deprecated method `pyo3::types::PyAnyMethods::iter`: use `try_iter` instead

warning: use of deprecated method `pyo3::types::PyAnyMethods::iter`: use `try_iter` instead
   --> src/types/from.rs:135:29
    |
135 |                 for it in v.iter()? {
    |                             ^^^^

Check warning on line 196 in src/node/nodeinfo.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

use of deprecated method `pyo3::IntoPy::into_py`: `IntoPy` is going to be replaced by `IntoPyObject`. See the migration guide (https://pyo3.rs/v0.23/migration) for more information.

warning: use of deprecated method `pyo3::IntoPy::into_py`: `IntoPy` is going to be replaced by `IntoPyObject`. See the migration guide (https://pyo3.rs/v0.23/migration) for more information.
   --> src/node/nodeinfo.rs:196:71
    |
196 |         dict.set_item("environment", self.reclass.environment.clone().into_py(py))?;
    |                                                                       ^^^^^^^

Check warning on line 195 in src/node/nodeinfo.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

use of deprecated method `pyo3::IntoPy::into_py`: `IntoPy` is going to be replaced by `IntoPyObject`. See the migration guide (https://pyo3.rs/v0.23/migration) for more information.

warning: use of deprecated method `pyo3::IntoPy::into_py`: `IntoPy` is going to be replaced by `IntoPyObject`. See the migration guide (https://pyo3.rs/v0.23/migration) for more information.
   --> src/node/nodeinfo.rs:195:55
    |
195 |         dict.set_item("uri", self.reclass.uri.clone().into_py(py))?;
    |                                                       ^^^^^^^

Check warning on line 194 in src/node/nodeinfo.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

use of deprecated method `pyo3::IntoPy::into_py`: `IntoPy` is going to be replaced by `IntoPyObject`. See the migration guide (https://pyo3.rs/v0.23/migration) for more information.

warning: use of deprecated method `pyo3::IntoPy::into_py`: `IntoPy` is going to be replaced by `IntoPyObject`. See the migration guide (https://pyo3.rs/v0.23/migration) for more information.
   --> src/node/nodeinfo.rs:194:57
    |
194 |         dict.set_item("name", self.reclass.name.clone().into_py(py))?;
    |                                                         ^^^^^^^

Check warning on line 193 in src/node/nodeinfo.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

use of deprecated method `pyo3::IntoPy::into_py`: `IntoPy` is going to be replaced by `IntoPyObject`. See the migration guide (https://pyo3.rs/v0.23/migration) for more information.

warning: use of deprecated method `pyo3::IntoPy::into_py`: `IntoPy` is going to be replaced by `IntoPyObject`. See the migration guide (https://pyo3.rs/v0.23/migration) for more information.
   --> src/node/nodeinfo.rs:193:57
    |
193 |         dict.set_item("node", self.reclass.node.clone().into_py(py))?;
    |                                                         ^^^^^^^

Check warning on line 192 in src/node/nodeinfo.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

use of deprecated associated function `pyo3::types::PyDict::new_bound`: renamed to `PyDict::new`

warning: use of deprecated associated function `pyo3::types::PyDict::new_bound`: renamed to `PyDict::new`
   --> src/node/nodeinfo.rs:192:28
    |
192 |         let dict = PyDict::new_bound(py);
    |                            ^^^^^^^^^

Check warning on line 184 in src/node/nodeinfo.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

use of deprecated method `pyo3::IntoPy::into_py`: `IntoPy` is going to be replaced by `IntoPyObject`. See the migration guide (https://pyo3.rs/v0.23/migration) for more information.

warning: use of deprecated method `pyo3::IntoPy::into_py`: `IntoPy` is going to be replaced by `IntoPyObject`. See the migration guide (https://pyo3.rs/v0.23/migration) for more information.
   --> src/node/nodeinfo.rs:184:71
    |
184 |         dict.set_item("environment", self.reclass.environment.clone().into_py(py))?;
    |                                                                       ^^^^^^^

Check warning on line 183 in src/node/nodeinfo.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

use of deprecated method `pyo3::IntoPy::into_py`: `IntoPy` is going to be replaced by `IntoPyObject`. See the migration guide (https://pyo3.rs/v0.23/migration) for more information.

warning: use of deprecated method `pyo3::IntoPy::into_py`: `IntoPy` is going to be replaced by `IntoPyObject`. See the migration guide (https://pyo3.rs/v0.23/migration) for more information.
   --> src/node/nodeinfo.rs:183:55
    |
183 |         dict.set_item("classes", self.classes.clone().into_py(py))?;
    |                                                       ^^^^^^^

Check warning on line 182 in src/node/nodeinfo.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

use of deprecated method `pyo3::IntoPy::into_py`: `IntoPy` is going to be replaced by `IntoPyObject`. See the migration guide (https://pyo3.rs/v0.23/migration) for more information.

warning: use of deprecated method `pyo3::IntoPy::into_py`: `IntoPy` is going to be replaced by `IntoPyObject`. See the migration guide (https://pyo3.rs/v0.23/migration) for more information.
   --> src/node/nodeinfo.rs:182:65
    |
182 |         dict.set_item("applications", self.applications.clone().into_py(py))?;
    |                                                                 ^^^^^^^

Check warning on line 180 in src/node/nodeinfo.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

use of deprecated associated function `pyo3::types::PyDict::new_bound`: renamed to `PyDict::new`

warning: use of deprecated associated function `pyo3::types::PyDict::new_bound`: renamed to `PyDict::new`
   --> src/node/nodeinfo.rs:180:28
    |
180 |         let dict = PyDict::new_bound(py);
    |                            ^^^^^^^^^

Check warning on line 89 in src/inventory.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

use of deprecated associated function `pyo3::types::PyDict::new_bound`: renamed to `PyDict::new`

warning: use of deprecated associated function `pyo3::types::PyDict::new_bound`: renamed to `PyDict::new`
  --> src/inventory.rs:89:36
   |
89 |         let reclass_dict = PyDict::new_bound(py);
   |                                    ^^^^^^^^^

Check warning on line 83 in src/inventory.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

use of deprecated associated function `pyo3::types::PyDict::new_bound`: renamed to `PyDict::new`

warning: use of deprecated associated function `pyo3::types::PyDict::new_bound`: renamed to `PyDict::new`
  --> src/inventory.rs:83:34
   |
83 |         let nodes_dict = PyDict::new_bound(py);
   |                                  ^^^^^^^^^

Check warning on line 82 in src/inventory.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

use of deprecated method `pyo3::IntoPy::into_py`: `IntoPy` is going to be replaced by `IntoPyObject`. See the migration guide (https://pyo3.rs/v0.23/migration) for more information.

warning: use of deprecated method `pyo3::IntoPy::into_py`: `IntoPy` is going to be replaced by `IntoPyObject`. See the migration guide (https://pyo3.rs/v0.23/migration) for more information.
  --> src/inventory.rs:82:55
   |
82 |         dict.set_item("classes", self.classes.clone().into_py(py))?;
   |                                                       ^^^^^^^

Check warning on line 81 in src/inventory.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

use of deprecated method `pyo3::IntoPy::into_py`: `IntoPy` is going to be replaced by `IntoPyObject`. See the migration guide (https://pyo3.rs/v0.23/migration) for more information.

warning: use of deprecated method `pyo3::IntoPy::into_py`: `IntoPy` is going to be replaced by `IntoPyObject`. See the migration guide (https://pyo3.rs/v0.23/migration) for more information.
  --> src/inventory.rs:81:65
   |
81 |         dict.set_item("applications", self.applications.clone().into_py(py))?;
   |                                                                 ^^^^^^^

Check warning on line 80 in src/inventory.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

use of deprecated associated function `pyo3::types::PyDict::new_bound`: renamed to `PyDict::new`

warning: use of deprecated associated function `pyo3::types::PyDict::new_bound`: renamed to `PyDict::new`
  --> src/inventory.rs:80:28
   |
80 |         let dict = PyDict::new_bound(py);
   |                            ^^^^^^^^^
   |
   = note: `#[warn(deprecated)]` on by default