Created
November 11, 2024 17:52
-
-
Save ngoldbaum/801273a16d477b1979542dac6917755c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Checking cryptography-rust v0.1.0 (/Users/goldbaum/Documents/cryptography/src/rust) | |
warning: use of deprecated trait `pyo3::ToPyObject`: `ToPyObject` is going to be replaced by `IntoPyObject`. See the migration guide (https://pyo3.rs/v0.23/migration) for more information. | |
--> src/rust/src/asn1.rs:9:11 | |
| | |
9 | use pyo3::ToPyObject; | |
| ^^^^^^^^^^ | |
| | |
= note: `#[warn(deprecated)]` on by default | |
warning: use of deprecated type alias `pyo3::types::PyLong`: use `PyInt` instead | |
--> src/rust/src/asn1.rs:51:53 | |
| | |
51 | let int_type = py.get_type_bound::<pyo3::types::PyLong>(); | |
| ^^^^^^ | |
warning: use of deprecated type alias `pyo3::types::PyLong`: use `PyInt` instead | |
--> src/rust/src/asn1.rs:72:37 | |
| | |
72 | v: pyo3::Bound<'p, pyo3::types::PyLong>, | |
| ^^^^^^ | |
warning: use of deprecated type alias `pyo3::types::PyLong`: use `PyInt` instead | |
--> src/rust/src/asn1.rs:120:37 | |
| | |
120 | r: pyo3::Bound<'_, pyo3::types::PyLong>, | |
| ^^^^^^ | |
warning: use of deprecated type alias `pyo3::types::PyLong`: use `PyInt` instead | |
--> src/rust/src/asn1.rs:121:37 | |
| | |
121 | s: pyo3::Bound<'_, pyo3::types::PyLong>, | |
| ^^^^^^ | |
warning: use of deprecated trait `pyo3::IntoPy`: `IntoPy` is going to be replaced by `IntoPyObject`. See the migration guide (https://pyo3.rs/v0.23/migration) for more information. | |
--> src/rust/src/backend/ciphers.rs:11:11 | |
| | |
11 | use pyo3::IntoPy; | |
| ^^^^^^ | |
warning: use of deprecated type alias `pyo3::types::PyLong`: use `PyInt` instead | |
--> src/rust/src/backend/dh.rs:366:30 | |
| | |
366 | x: pyo3::Py<pyo3::types::PyLong>, | |
| ^^^^^^ | |
warning: use of deprecated type alias `pyo3::types::PyLong`: use `PyInt` instead | |
--> src/rust/src/backend/dh.rs:374:30 | |
| | |
374 | y: pyo3::Py<pyo3::types::PyLong>, | |
| ^^^^^^ | |
warning: use of deprecated type alias `pyo3::types::PyLong`: use `PyInt` instead | |
--> src/rust/src/backend/dh.rs:382:30 | |
| | |
382 | p: pyo3::Py<pyo3::types::PyLong>, | |
| ^^^^^^ | |
warning: use of deprecated type alias `pyo3::types::PyLong`: use `PyInt` instead | |
--> src/rust/src/backend/dh.rs:384:30 | |
| | |
384 | g: pyo3::Py<pyo3::types::PyLong>, | |
| ^^^^^^ | |
warning: use of deprecated type alias `pyo3::types::PyLong`: use `PyInt` instead | |
--> src/rust/src/backend/dh.rs:386:37 | |
| | |
386 | q: Option<pyo3::Py<pyo3::types::PyLong>>, | |
| ^^^^^^ | |
warning: use of deprecated type alias `pyo3::types::PyLong`: use `PyInt` instead | |
--> src/rust/src/backend/dh.rs:393:34 | |
| | |
393 | x: pyo3::Py<pyo3::types::PyLong>, | |
| ^^^^^^ | |
warning: use of deprecated type alias `pyo3::types::PyLong`: use `PyInt` instead | |
--> src/rust/src/backend/dh.rs:443:34 | |
| | |
443 | y: pyo3::Py<pyo3::types::PyLong>, | |
| ^^^^^^ | |
warning: use of deprecated type alias `pyo3::types::PyLong`: use `PyInt` instead | |
--> src/rust/src/backend/dh.rs:489:34 | |
| | |
489 | p: pyo3::Py<pyo3::types::PyLong>, | |
| ^^^^^^ | |
warning: use of deprecated type alias `pyo3::types::PyLong`: use `PyInt` instead | |
--> src/rust/src/backend/dh.rs:490:34 | |
| | |
490 | g: pyo3::Py<pyo3::types::PyLong>, | |
| ^^^^^^ | |
warning: use of deprecated type alias `pyo3::types::PyLong`: use `PyInt` instead | |
--> src/rust/src/backend/dh.rs:491:41 | |
| | |
491 | q: Option<pyo3::Py<pyo3::types::PyLong>>, | |
| ^^^^^^ | |
warning: use of deprecated trait `pyo3::ToPyObject`: `ToPyObject` is going to be replaced by `IntoPyObject`. See the migration guide (https://pyo3.rs/v0.23/migration) for more information. | |
--> src/rust/src/backend/dsa.rs:10:11 | |
| | |
10 | use pyo3::ToPyObject; | |
| ^^^^^^^^^^ | |
warning: use of deprecated type alias `pyo3::types::PyLong`: use `PyInt` instead | |
--> src/rust/src/backend/dsa.rs:323:30 | |
| | |
323 | x: pyo3::Py<pyo3::types::PyLong>, | |
| ^^^^^^ | |
warning: use of deprecated type alias `pyo3::types::PyLong`: use `PyInt` instead | |
--> src/rust/src/backend/dsa.rs:335:30 | |
| | |
335 | y: pyo3::Py<pyo3::types::PyLong>, | |
| ^^^^^^ | |
warning: use of deprecated type alias `pyo3::types::PyLong`: use `PyInt` instead | |
--> src/rust/src/backend/dsa.rs:347:30 | |
| | |
347 | p: pyo3::Py<pyo3::types::PyLong>, | |
| ^^^^^^ | |
warning: use of deprecated type alias `pyo3::types::PyLong`: use `PyInt` instead | |
--> src/rust/src/backend/dsa.rs:349:30 | |
| | |
349 | q: pyo3::Py<pyo3::types::PyLong>, | |
| ^^^^^^ | |
warning: use of deprecated type alias `pyo3::types::PyLong`: use `PyInt` instead | |
--> src/rust/src/backend/dsa.rs:351:30 | |
| | |
351 | g: pyo3::Py<pyo3::types::PyLong>, | |
| ^^^^^^ | |
warning: use of deprecated type alias `pyo3::types::PyLong`: use `PyInt` instead | |
--> src/rust/src/backend/dsa.rs:358:34 | |
| | |
358 | x: pyo3::Py<pyo3::types::PyLong>, | |
| ^^^^^^ | |
warning: use of deprecated type alias `pyo3::types::PyLong`: use `PyInt` instead | |
--> src/rust/src/backend/dsa.rs:406:34 | |
| | |
406 | y: pyo3::Py<pyo3::types::PyLong>, | |
| ^^^^^^ | |
warning: use of deprecated type alias `pyo3::types::PyLong`: use `PyInt` instead | |
--> src/rust/src/backend/dsa.rs:463:34 | |
| | |
463 | p: pyo3::Py<pyo3::types::PyLong>, | |
| ^^^^^^ | |
warning: use of deprecated type alias `pyo3::types::PyLong`: use `PyInt` instead | |
--> src/rust/src/backend/dsa.rs:464:34 | |
| | |
464 | q: pyo3::Py<pyo3::types::PyLong>, | |
| ^^^^^^ | |
warning: use of deprecated type alias `pyo3::types::PyLong`: use `PyInt` instead | |
--> src/rust/src/backend/dsa.rs:465:34 | |
| | |
465 | g: pyo3::Py<pyo3::types::PyLong>, | |
| ^^^^^^ | |
warning: use of deprecated type alias `pyo3::types::PyLong`: use `PyInt` instead | |
--> src/rust/src/backend/ec.rs:178:53 | |
| | |
178 | py_private_value: &pyo3::Bound<'_, pyo3::types::PyLong>, | |
| ^^^^^^ | |
warning: use of deprecated type alias `pyo3::types::PyLong`: use `PyInt` instead | |
--> src/rust/src/backend/ec.rs:467:42 | |
| | |
467 | private_value: pyo3::Py<pyo3::types::PyLong>, | |
| ^^^^^^ | |
warning: use of deprecated type alias `pyo3::types::PyLong`: use `PyInt` instead | |
--> src/rust/src/backend/ec.rs:475:30 | |
| | |
475 | x: pyo3::Py<pyo3::types::PyLong>, | |
| ^^^^^^ | |
warning: use of deprecated type alias `pyo3::types::PyLong`: use `PyInt` instead | |
--> src/rust/src/backend/ec.rs:477:30 | |
| | |
477 | y: pyo3::Py<pyo3::types::PyLong>, | |
| ^^^^^^ | |
warning: use of deprecated type alias `pyo3::types::PyLong`: use `PyInt` instead | |
--> src/rust/src/backend/ec.rs:515:46 | |
| | |
515 | private_value: pyo3::Py<pyo3::types::PyLong>, | |
| ^^^^^^ | |
warning: use of deprecated type alias `pyo3::types::PyLong`: use `PyInt` instead | |
--> src/rust/src/backend/ec.rs:589:34 | |
| | |
589 | x: pyo3::Py<pyo3::types::PyLong>, | |
| ^^^^^^ | |
warning: use of deprecated type alias `pyo3::types::PyLong`: use `PyInt` instead | |
--> src/rust/src/backend/ec.rs:590:34 | |
| | |
590 | y: pyo3::Py<pyo3::types::PyLong>, | |
| ^^^^^^ | |
warning: use of deprecated trait `pyo3::IntoPy`: `IntoPy` is going to be replaced by `IntoPyObject`. See the migration guide (https://pyo3.rs/v0.23/migration) for more information. | |
--> src/rust/src/backend/hashes.rs:6:11 | |
| | |
6 | use pyo3::IntoPy; | |
| ^^^^^^ | |
warning: use of deprecated trait `pyo3::IntoPy`: `IntoPy` is going to be replaced by `IntoPyObject`. See the migration guide (https://pyo3.rs/v0.23/migration) for more information. | |
--> src/rust/src/backend/keys.rs:5:11 | |
| | |
5 | use pyo3::IntoPy; | |
| ^^^^^^ | |
warning: use of deprecated type alias `pyo3::types::PyLong`: use `PyInt` instead | |
--> src/rust/src/backend/rsa.rs:540:30 | |
| | |
540 | p: pyo3::Py<pyo3::types::PyLong>, | |
| ^^^^^^ | |
warning: use of deprecated type alias `pyo3::types::PyLong`: use `PyInt` instead | |
--> src/rust/src/backend/rsa.rs:542:30 | |
| | |
542 | q: pyo3::Py<pyo3::types::PyLong>, | |
| ^^^^^^ | |
warning: use of deprecated type alias `pyo3::types::PyLong`: use `PyInt` instead | |
--> src/rust/src/backend/rsa.rs:544:30 | |
| | |
544 | d: pyo3::Py<pyo3::types::PyLong>, | |
| ^^^^^^ | |
warning: use of deprecated type alias `pyo3::types::PyLong`: use `PyInt` instead | |
--> src/rust/src/backend/rsa.rs:546:33 | |
| | |
546 | dmp1: pyo3::Py<pyo3::types::PyLong>, | |
| ^^^^^^ | |
warning: use of deprecated type alias `pyo3::types::PyLong`: use `PyInt` instead | |
--> src/rust/src/backend/rsa.rs:548:33 | |
| | |
548 | dmq1: pyo3::Py<pyo3::types::PyLong>, | |
| ^^^^^^ | |
warning: use of deprecated type alias `pyo3::types::PyLong`: use `PyInt` instead | |
--> src/rust/src/backend/rsa.rs:550:33 | |
| | |
550 | iqmp: pyo3::Py<pyo3::types::PyLong>, | |
| ^^^^^^ | |
warning: use of deprecated type alias `pyo3::types::PyLong`: use `PyInt` instead | |
--> src/rust/src/backend/rsa.rs:562:30 | |
| | |
562 | e: pyo3::Py<pyo3::types::PyLong>, | |
| ^^^^^^ | |
warning: use of deprecated type alias `pyo3::types::PyLong`: use `PyInt` instead | |
--> src/rust/src/backend/rsa.rs:564:30 | |
| | |
564 | n: pyo3::Py<pyo3::types::PyLong>, | |
| ^^^^^^ | |
warning: use of deprecated type alias `pyo3::types::PyLong`: use `PyInt` instead | |
--> src/rust/src/backend/rsa.rs:569:38 | |
| | |
569 | p: &pyo3::Bound<'_, pyo3::types::PyLong>, | |
| ^^^^^^ | |
warning: use of deprecated type alias `pyo3::types::PyLong`: use `PyInt` instead | |
--> src/rust/src/backend/rsa.rs:570:38 | |
| | |
570 | q: &pyo3::Bound<'_, pyo3::types::PyLong>, | |
| ^^^^^^ | |
warning: use of deprecated type alias `pyo3::types::PyLong`: use `PyInt` instead | |
--> src/rust/src/backend/rsa.rs:571:53 | |
| | |
571 | private_exponent: &pyo3::Bound<'_, pyo3::types::PyLong>, | |
| ^^^^^^ | |
warning: use of deprecated type alias `pyo3::types::PyLong`: use `PyInt` instead | |
--> src/rust/src/backend/rsa.rs:572:41 | |
| | |
572 | dmp1: &pyo3::Bound<'_, pyo3::types::PyLong>, | |
| ^^^^^^ | |
warning: use of deprecated type alias `pyo3::types::PyLong`: use `PyInt` instead | |
--> src/rust/src/backend/rsa.rs:573:41 | |
| | |
573 | dmq1: &pyo3::Bound<'_, pyo3::types::PyLong>, | |
| ^^^^^^ | |
warning: use of deprecated type alias `pyo3::types::PyLong`: use `PyInt` instead | |
--> src/rust/src/backend/rsa.rs:574:41 | |
| | |
574 | iqmp: &pyo3::Bound<'_, pyo3::types::PyLong>, | |
| ^^^^^^ | |
warning: use of deprecated type alias `pyo3::types::PyLong`: use `PyInt` instead | |
--> src/rust/src/backend/rsa.rs:575:52 | |
| | |
575 | public_exponent: &pyo3::Bound<'_, pyo3::types::PyLong>, | |
| ^^^^^^ | |
warning: use of deprecated type alias `pyo3::types::PyLong`: use `PyInt` instead | |
--> src/rust/src/backend/rsa.rs:576:44 | |
| | |
576 | modulus: &pyo3::Bound<'_, pyo3::types::PyLong>, | |
| ^^^^^^ | |
warning: use of deprecated type alias `pyo3::types::PyLong`: use `PyInt` instead | |
--> src/rust/src/backend/rsa.rs:745:38 | |
| | |
745 | e: &pyo3::Bound<'_, pyo3::types::PyLong>, | |
| ^^^^^^ | |
warning: use of deprecated type alias `pyo3::types::PyLong`: use `PyInt` instead | |
--> src/rust/src/backend/rsa.rs:746:38 | |
| | |
746 | n: &pyo3::Bound<'_, pyo3::types::PyLong>, | |
| ^^^^^^ | |
warning: use of deprecated type alias `pyo3::types::PyLong`: use `PyInt` instead | |
--> src/rust/src/backend/rsa.rs:657:34 | |
| | |
657 | p: pyo3::Py<pyo3::types::PyLong>, | |
| ^^^^^^ | |
warning: use of deprecated type alias `pyo3::types::PyLong`: use `PyInt` instead | |
--> src/rust/src/backend/rsa.rs:658:34 | |
| | |
658 | q: pyo3::Py<pyo3::types::PyLong>, | |
| ^^^^^^ | |
warning: use of deprecated type alias `pyo3::types::PyLong`: use `PyInt` instead | |
--> src/rust/src/backend/rsa.rs:659:34 | |
| | |
659 | d: pyo3::Py<pyo3::types::PyLong>, | |
| ^^^^^^ | |
warning: use of deprecated type alias `pyo3::types::PyLong`: use `PyInt` instead | |
--> src/rust/src/backend/rsa.rs:660:37 | |
| | |
660 | dmp1: pyo3::Py<pyo3::types::PyLong>, | |
| ^^^^^^ | |
warning: use of deprecated type alias `pyo3::types::PyLong`: use `PyInt` instead | |
--> src/rust/src/backend/rsa.rs:661:37 | |
| | |
661 | dmq1: pyo3::Py<pyo3::types::PyLong>, | |
| ^^^^^^ | |
warning: use of deprecated type alias `pyo3::types::PyLong`: use `PyInt` instead | |
--> src/rust/src/backend/rsa.rs:662:37 | |
| | |
662 | iqmp: pyo3::Py<pyo3::types::PyLong>, | |
| ^^^^^^ | |
warning: use of deprecated type alias `pyo3::types::PyLong`: use `PyInt` instead | |
--> src/rust/src/backend/rsa.rs:772:37 | |
| | |
772 | fn new(e: pyo3::Py<pyo3::types::PyLong>, n: pyo3::Py<pyo3::types::PyLong>) -> RsaPublicNumbers { | |
| ^^^^^^ | |
warning: use of deprecated type alias `pyo3::types::PyLong`: use `PyInt` instead | |
--> src/rust/src/backend/rsa.rs:772:71 | |
| | |
772 | fn new(e: pyo3::Py<pyo3::types::PyLong>, n: pyo3::Py<pyo3::types::PyLong>) -> RsaPublicNumbers { | |
| ^^^^^^ | |
warning: use of deprecated trait `pyo3::ToPyObject`: `ToPyObject` is going to be replaced by `IntoPyObject`. See the migration guide (https://pyo3.rs/v0.23/migration) for more information. | |
--> src/rust/src/backend/utils.rs:9:11 | |
| | |
9 | use pyo3::ToPyObject; | |
| ^^^^^^^^^^ | |
warning: use of deprecated type alias `pyo3::types::PyLong`: use `PyInt` instead | |
--> src/rust/src/backend/utils.rs:33:53 | |
| | |
33 | let int_type = py.get_type_bound::<pyo3::types::PyLong>(); | |
| ^^^^^^ | |
warning: use of deprecated trait `pyo3::ToPyObject`: `ToPyObject` is going to be replaced by `IntoPyObject`. See the migration guide (https://pyo3.rs/v0.23/migration) for more information. | |
--> src/rust/src/error.rs:8:11 | |
| | |
8 | use pyo3::ToPyObject; | |
| ^^^^^^^^^^ | |
warning: use of deprecated trait `pyo3::IntoPy`: `IntoPy` is going to be replaced by `IntoPyObject`. See the migration guide (https://pyo3.rs/v0.23/migration) for more information. | |
--> src/rust/src/pkcs12.rs:13:11 | |
| | |
13 | use pyo3::IntoPy; | |
| ^^^^^^ | |
warning: use of deprecated trait `pyo3::IntoPy`: `IntoPy` is going to be replaced by `IntoPyObject`. See the migration guide (https://pyo3.rs/v0.23/migration) for more information. | |
--> src/rust/src/pkcs7.rs:18:11 | |
| | |
18 | use pyo3::IntoPy; | |
| ^^^^^^ | |
warning: use of deprecated trait `pyo3::IntoPy`: `IntoPy` is going to be replaced by `IntoPyObject`. See the migration guide (https://pyo3.rs/v0.23/migration) for more information. | |
--> src/rust/src/x509/certificate.rs:21:12 | |
| | |
21 | use pyo3::{IntoPy, ToPyObject}; | |
| ^^^^^^ | |
warning: use of deprecated trait `pyo3::ToPyObject`: `ToPyObject` is going to be replaced by `IntoPyObject`. See the migration guide (https://pyo3.rs/v0.23/migration) for more information. | |
--> src/rust/src/x509/certificate.rs:21:20 | |
| | |
21 | use pyo3::{IntoPy, ToPyObject}; | |
| ^^^^^^^^^^ | |
warning: use of deprecated trait `pyo3::IntoPy`: `IntoPy` is going to be replaced by `IntoPyObject`. See the migration guide (https://pyo3.rs/v0.23/migration) for more information. | |
--> src/rust/src/x509/common.rs:12:12 | |
| | |
12 | use pyo3::{IntoPy, ToPyObject}; | |
| ^^^^^^ | |
warning: use of deprecated trait `pyo3::ToPyObject`: `ToPyObject` is going to be replaced by `IntoPyObject`. See the migration guide (https://pyo3.rs/v0.23/migration) for more information. | |
--> src/rust/src/x509/common.rs:12:20 | |
| | |
12 | use pyo3::{IntoPy, ToPyObject}; | |
| ^^^^^^^^^^ | |
warning: use of deprecated trait `pyo3::ToPyObject`: `ToPyObject` is going to be replaced by `IntoPyObject`. See the migration guide (https://pyo3.rs/v0.23/migration) for more information. | |
--> src/rust/src/x509/crl.rs:17:11 | |
| | |
17 | use pyo3::ToPyObject; | |
| ^^^^^^^^^^ | |
warning: use of deprecated type alias `pyo3::types::PyLong`: use `PyInt` instead | |
--> src/rust/src/x509/crl.rs:396:46 | |
| | |
396 | serial: pyo3::Bound<'_, pyo3::types::PyLong>, | |
| ^^^^^^ | |
warning: use of deprecated trait `pyo3::IntoPy`: `IntoPy` is going to be replaced by `IntoPyObject`. See the migration guide (https://pyo3.rs/v0.23/migration) for more information. | |
--> src/rust/src/x509/csr.rs:12:11 | |
| | |
12 | use pyo3::IntoPy; | |
| ^^^^^^ | |
warning: use of deprecated type alias `pyo3::types::PyLong`: use `PyInt` instead | |
--> src/rust/src/x509/extensions.rs:46:75 | |
| | |
46 | authority_cert_serial_number: Option<pyo3::Bound<'a, pyo3::types::PyLong>>, | |
| ^^^^^^ | |
warning: use of deprecated type alias `pyo3::types::PyLong`: use `PyInt` instead | |
--> src/rust/src/x509/extensions.rs:630:42 | |
| | |
630 | .downcast::<pyo3::types::PyLong>()? | |
| ^^^^^^ | |
warning: use of deprecated type alias `pyo3::types::PyLong`: use `PyInt` instead | |
--> src/rust/src/x509/extensions.rs:683:42 | |
| | |
683 | .downcast::<pyo3::types::PyLong>()? | |
| ^^^^^^ | |
warning: use of deprecated type alias `pyo3::types::PyLong`: use `PyInt` instead | |
--> src/rust/src/x509/ocsp_req.rs:191:53 | |
| | |
191 | let py_serial: pyo3::Bound<'_, pyo3::types::PyLong>; | |
| ^^^^^^ | |
warning: use of deprecated trait `pyo3::ToPyObject`: `ToPyObject` is going to be replaced by `IntoPyObject`. See the migration guide (https://pyo3.rs/v0.23/migration) for more information. | |
--> src/rust/src/x509/sct.rs:9:11 | |
| | |
9 | use pyo3::ToPyObject; | |
| ^^^^^^^^^^ | |
warning: use of deprecated type alias `pyo3::types::PyLong`: use `PyInt` instead | |
--> src/rust/src/x509/sign.rs:122:56 | |
| | |
122 | } else if py_saltlen.is_instance_of::<pyo3::types::PyLong>() { | |
| ^^^^^^ | |
warning: use of deprecated associated function `pyo3::types::PyBytes::new_bound`: renamed to `PyBytes::new` | |
--> src/rust/src/asn1.rs:41:30 | |
| | |
41 | Ok(pyo3::types::PyBytes::new_bound( | |
| ^^^^^^^^^ | |
warning: use of deprecated method `pyo3::Python::<'py>::get_type_bound`: renamed to `Python::get_type` | |
--> src/rust/src/asn1.rs:51:23 | |
| | |
51 | let int_type = py.get_type_bound::<pyo3::types::PyLong>(); | |
| ^^^^^^^^^^^^^^ | |
warning: use of deprecated method `pyo3::types::IntoPyDict::into_py_dict_bound`: renamed to `IntoPyDict::into_py_dict` | |
--> src/rust/src/asn1.rs:52:37 | |
| | |
52 | let kwargs = [("signed", true)].into_py_dict_bound(py); | |
| ^^^^^^^^^^^^^^^^^^ | |
warning: use of deprecated method `pyo3::ToPyObject::to_object`: `ToPyObject` is going to be replaced by `IntoPyObject`. See the migration guide (https://pyo3.rs/v0.23/migration) for more information. | |
--> src/rust/src/asn1.rs:67:10 | |
| | |
67 | .to_object(py)) | |
| ^^^^^^^^^ | |
warning: use of deprecated associated function `pyo3::types::PyBytes::new_bound`: renamed to `PyBytes::new` | |
--> src/rust/src/asn1.rs:99:34 | |
| | |
99 | Ok(pyo3::types::PyBytes::new_bound(py, &data)) | |
| ^^^^^^^^^ | |
warning: use of deprecated associated function `pyo3::types::PyBytes::new_bound`: renamed to `PyBytes::new` | |
--> src/rust/src/asn1.rs:101:34 | |
| | |
101 | Ok(pyo3::types::PyBytes::new_bound( | |
| ^^^^^^^^^ | |
warning: use of deprecated associated function `pyo3::types::PyBytes::new_bound`: renamed to `PyBytes::new` | |
--> src/rust/src/asn1.rs:130:30 | |
| | |
130 | Ok(pyo3::types::PyBytes::new_bound(py, &result)) | |
| ^^^^^^^^^ | |
warning: use of deprecated associated function `pyo3::types::PyBytes::new_bound_with`: renamed to `PyBytes::new_with` | |
--> src/rust/src/backend/aead.rs:175:34 | |
| | |
175 | Ok(pyo3::types::PyBytes::new_bound_with( | |
| ^^^^^^^^^^^^^^ | |
warning: use of deprecated associated function `pyo3::types::PyBytes::new_bound_with`: renamed to `PyBytes::new_with` | |
--> src/rust/src/backend/aead.rs:257:34 | |
| | |
257 | Ok(pyo3::types::PyBytes::new_bound_with( | |
| ^^^^^^^^^^^^^^ | |
warning: use of deprecated associated function `pyo3::types::PyBytes::new_bound`: renamed to `PyBytes::new` | |
--> src/rust/src/backend/ciphers.rs:163:34 | |
| | |
163 | Ok(pyo3::types::PyBytes::new_bound(py, &buf[..n])) | |
| ^^^^^^^^^ | |
warning: use of deprecated associated function `pyo3::types::PyBytes::new_bound`: renamed to `PyBytes::new` | |
--> src/rust/src/backend/ciphers.rs:227:34 | |
| | |
227 | Ok(pyo3::types::PyBytes::new_bound(py, &out_buf[..n])) | |
| ^^^^^^^^^ | |
warning: use of deprecated associated function `pyo3::types::PyBytes::new_bound_with`: renamed to `PyBytes::new_with` | |
--> src/rust/src/backend/ciphers.rs:362:41 | |
| | |
362 | let tag = pyo3::types::PyBytes::new_bound_with(py, 16, |t| { | |
| ^^^^^^^^^^^^^^ | |
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/rust/src/backend/ciphers.rs:542:10 | |
| | |
542 | .into_py(py)) | |
| ^^^^^^^ | |
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/rust/src/backend/ciphers.rs:544:47 | |
| | |
544 | Ok(PyCipherContext { ctx: Some(ctx) }.into_py(py)) | |
| ^^^^^^^ | |
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/rust/src/backend/ciphers.rs:574:10 | |
| | |
574 | .into_py(py)) | |
| ^^^^^^^ | |
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/rust/src/backend/ciphers.rs:576:47 | |
| | |
576 | Ok(PyCipherContext { ctx: Some(ctx) }.into_py(py)) | |
| ^^^^^^^ | |
warning: use of deprecated associated function `pyo3::types::PyBytes::new_bound`: renamed to `PyBytes::new` | |
--> src/rust/src/backend/cmac.rs:80:34 | |
| | |
80 | Ok(pyo3::types::PyBytes::new_bound(py, &data)) | |
| ^^^^^^^^^ | |
warning: use of deprecated associated function `pyo3::types::PyBytes::new_bound_with`: renamed to `PyBytes::new_with` | |
--> src/rust/src/backend/dh.rs:152:34 | |
| | |
152 | Ok(pyo3::types::PyBytes::new_bound_with(py, len, |b| { | |
| ^^^^^^^^^^^^^^ | |
error[E0277]: can't compare `pyo3::Bound<'_, PyInt>` with `pyo3::Bound<'_, PyInt>` | |
--> src/rust/src/backend/dh.rs:431:31 | |
| | |
431 | Ok(self.x.bind(py).eq(other.x.bind(py))? | |
| -- ^^^^^^^^^^^^^^^^ no implementation for `pyo3::Bound<'_, PyInt> == pyo3::Bound<'_, PyInt>` | |
| | | |
| required by a bound introduced by this call | |
| | |
= help: the trait `PartialEq<pyo3::Bound<'_, PyInt>>` is not implemented for `pyo3::Bound<'_, PyInt>` | |
= help: the following other types implement trait `PartialEq<Rhs>`: | |
`&pyo3::Bound<'_, PyBool>` implements `PartialEq<bool>` | |
`&pyo3::Bound<'_, PyBytes>` implements `PartialEq<[u8]>` | |
`&pyo3::Bound<'_, PyFloat>` implements `PartialEq<f32>` | |
`&pyo3::Bound<'_, PyFloat>` implements `PartialEq<f64>` | |
`&pyo3::Bound<'_, PyString>` implements `PartialEq<str>` | |
`pyo3::Bound<'_, PyBool>` implements `PartialEq<&bool>` | |
`pyo3::Bound<'_, PyBool>` implements `PartialEq<bool>` | |
`pyo3::Bound<'_, PyBytes>` implements `PartialEq<&[u8]>` | |
and 19 others | |
error[E0277]: the `?` operator can only be applied to values that implement `Try` | |
--> src/rust/src/backend/dh.rs:431:12 | |
| | |
431 | Ok(self.x.bind(py).eq(other.x.bind(py))? | |
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the `?` operator cannot be applied to type `bool` | |
| | |
= help: the trait `Try` is not implemented for `bool` | |
error[E0277]: can't compare `pyo3::Bound<'_, PyInt>` with `pyo3::Bound<'_, PyInt>` | |
--> src/rust/src/backend/dh.rs:475:31 | |
| | |
475 | Ok(self.y.bind(py).eq(other.y.bind(py))? | |
| -- ^^^^^^^^^^^^^^^^ no implementation for `pyo3::Bound<'_, PyInt> == pyo3::Bound<'_, PyInt>` | |
| | | |
| required by a bound introduced by this call | |
| | |
= help: the trait `PartialEq<pyo3::Bound<'_, PyInt>>` is not implemented for `pyo3::Bound<'_, PyInt>` | |
= help: the following other types implement trait `PartialEq<Rhs>`: | |
`&pyo3::Bound<'_, PyBool>` implements `PartialEq<bool>` | |
`&pyo3::Bound<'_, PyBytes>` implements `PartialEq<[u8]>` | |
`&pyo3::Bound<'_, PyFloat>` implements `PartialEq<f32>` | |
`&pyo3::Bound<'_, PyFloat>` implements `PartialEq<f64>` | |
`&pyo3::Bound<'_, PyString>` implements `PartialEq<str>` | |
`pyo3::Bound<'_, PyBool>` implements `PartialEq<&bool>` | |
`pyo3::Bound<'_, PyBool>` implements `PartialEq<bool>` | |
`pyo3::Bound<'_, PyBytes>` implements `PartialEq<&[u8]>` | |
and 19 others | |
error[E0277]: the `?` operator can only be applied to values that implement `Try` | |
--> src/rust/src/backend/dh.rs:475:12 | |
| | |
475 | Ok(self.y.bind(py).eq(other.y.bind(py))? | |
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the `?` operator cannot be applied to type `bool` | |
| | |
= help: the trait `Try` is not implemented for `bool` | |
error[E0277]: can't compare `pyo3::Bound<'_, PyInt>` with `pyo3::Bound<'_, PyInt>` | |
--> src/rust/src/backend/dh.rs:531:65 | |
| | |
531 | (Some(self_q), Some(other_q)) => self_q.bind(py).eq(other_q.bind(py))?, | |
| -- ^^^^^^^^^^^^^^^^ no implementation for `pyo3::Bound<'_, PyInt> == pyo3::Bound<'_, PyInt>` | |
| | | |
| required by a bound introduced by this call | |
| | |
= help: the trait `PartialEq<pyo3::Bound<'_, PyInt>>` is not implemented for `pyo3::Bound<'_, PyInt>` | |
= help: the following other types implement trait `PartialEq<Rhs>`: | |
`&pyo3::Bound<'_, PyBool>` implements `PartialEq<bool>` | |
`&pyo3::Bound<'_, PyBytes>` implements `PartialEq<[u8]>` | |
`&pyo3::Bound<'_, PyFloat>` implements `PartialEq<f32>` | |
`&pyo3::Bound<'_, PyFloat>` implements `PartialEq<f64>` | |
`&pyo3::Bound<'_, PyString>` implements `PartialEq<str>` | |
`pyo3::Bound<'_, PyBool>` implements `PartialEq<&bool>` | |
`pyo3::Bound<'_, PyBool>` implements `PartialEq<bool>` | |
`pyo3::Bound<'_, PyBytes>` implements `PartialEq<&[u8]>` | |
and 19 others | |
error[E0277]: the `?` operator can only be applied to values that implement `Try` | |
--> src/rust/src/backend/dh.rs:531:46 | |
| | |
531 | (Some(self_q), Some(other_q)) => self_q.bind(py).eq(other_q.bind(py))?, | |
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the `?` operator cannot be applied to type `bool` | |
| | |
= help: the trait `Try` is not implemented for `bool` | |
error[E0277]: can't compare `pyo3::Bound<'_, PyInt>` with `pyo3::Bound<'_, PyInt>` | |
--> src/rust/src/backend/dh.rs:535:31 | |
| | |
535 | Ok(self.p.bind(py).eq(other.p.bind(py))? | |
| -- ^^^^^^^^^^^^^^^^ no implementation for `pyo3::Bound<'_, PyInt> == pyo3::Bound<'_, PyInt>` | |
| | | |
| required by a bound introduced by this call | |
| | |
= help: the trait `PartialEq<pyo3::Bound<'_, PyInt>>` is not implemented for `pyo3::Bound<'_, PyInt>` | |
= help: the following other types implement trait `PartialEq<Rhs>`: | |
`&pyo3::Bound<'_, PyBool>` implements `PartialEq<bool>` | |
`&pyo3::Bound<'_, PyBytes>` implements `PartialEq<[u8]>` | |
`&pyo3::Bound<'_, PyFloat>` implements `PartialEq<f32>` | |
`&pyo3::Bound<'_, PyFloat>` implements `PartialEq<f64>` | |
`&pyo3::Bound<'_, PyString>` implements `PartialEq<str>` | |
`pyo3::Bound<'_, PyBool>` implements `PartialEq<&bool>` | |
`pyo3::Bound<'_, PyBool>` implements `PartialEq<bool>` | |
`pyo3::Bound<'_, PyBytes>` implements `PartialEq<&[u8]>` | |
and 19 others | |
error[E0277]: the `?` operator can only be applied to values that implement `Try` | |
--> src/rust/src/backend/dh.rs:535:12 | |
| | |
535 | Ok(self.p.bind(py).eq(other.p.bind(py))? | |
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the `?` operator cannot be applied to type `bool` | |
| | |
= help: the trait `Try` is not implemented for `bool` | |
error[E0277]: can't compare `pyo3::Bound<'_, PyInt>` with `pyo3::Bound<'_, PyInt>` | |
--> src/rust/src/backend/dh.rs:536:35 | |
| | |
536 | && self.g.bind(py).eq(other.g.bind(py))? | |
| -- ^^^^^^^^^^^^^^^^ no implementation for `pyo3::Bound<'_, PyInt> == pyo3::Bound<'_, PyInt>` | |
| | | |
| required by a bound introduced by this call | |
| | |
= help: the trait `PartialEq<pyo3::Bound<'_, PyInt>>` is not implemented for `pyo3::Bound<'_, PyInt>` | |
= help: the following other types implement trait `PartialEq<Rhs>`: | |
`&pyo3::Bound<'_, PyBool>` implements `PartialEq<bool>` | |
`&pyo3::Bound<'_, PyBytes>` implements `PartialEq<[u8]>` | |
`&pyo3::Bound<'_, PyFloat>` implements `PartialEq<f32>` | |
`&pyo3::Bound<'_, PyFloat>` implements `PartialEq<f64>` | |
`&pyo3::Bound<'_, PyString>` implements `PartialEq<str>` | |
`pyo3::Bound<'_, PyBool>` implements `PartialEq<&bool>` | |
`pyo3::Bound<'_, PyBool>` implements `PartialEq<bool>` | |
`pyo3::Bound<'_, PyBytes>` implements `PartialEq<&[u8]>` | |
and 19 others | |
error[E0277]: the `?` operator can only be applied to values that implement `Try` | |
--> src/rust/src/backend/dh.rs:536:16 | |
| | |
536 | && self.g.bind(py).eq(other.g.bind(py))? | |
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the `?` operator cannot be applied to type `bool` | |
| | |
= help: the trait `Try` is not implemented for `bool` | |
warning: use of deprecated method `pyo3::ToPyObject::to_object`: `ToPyObject` is going to be replaced by `IntoPyObject`. See the migration guide (https://pyo3.rs/v0.23/migration) for more information. | |
--> src/rust/src/backend/dsa.rs:83:56 | |
| | |
83 | error::list_from_openssl_error(py, &e).to_object(py), | |
| ^^^^^^^^^ | |
warning: use of deprecated associated function `pyo3::types::PyBytes::new_bound`: renamed to `PyBytes::new` | |
--> src/rust/src/backend/dsa.rs:86:34 | |
| | |
86 | Ok(pyo3::types::PyBytes::new_bound(py, &sig)) | |
| ^^^^^^^^^ | |
error[E0308]: `?` operator has incompatible types | |
--> src/rust/src/backend/dsa.rs:303:51 | |
| | |
303 | if numbers.public_numbers.get().y.bind(py).ne(params | |
| ___________________________________________________^ | |
304 | | .g | |
305 | | .bind(py) | |
306 | | .pow(numbers.x.bind(py), Some(params.p.bind(py)))?)? | |
| |__________________________________________________________^ expected `&_`, found `Bound<'_, PyAny>` | |
| | |
= note: `?` operator cannot convert from `pyo3::Bound<'_, PyAny>` to `&_` | |
= note: expected reference `&_` | |
found struct `pyo3::Bound<'_, PyAny>` | |
help: consider borrowing here | |
| | |
303 | if numbers.public_numbers.get().y.bind(py).ne(¶ms | |
| + | |
error[E0277]: the `?` operator can only be applied to values that implement `Try` | |
--> src/rust/src/backend/dsa.rs:303:8 | |
| | |
303 | if numbers.public_numbers.get().y.bind(py).ne(params | |
| ________^ | |
304 | | .g | |
305 | | .bind(py) | |
306 | | .pow(numbers.x.bind(py), Some(params.p.bind(py)))?)? | |
| |____________________________________________________________^ the `?` operator cannot be applied to type `bool` | |
| | |
= help: the trait `Try` is not implemented for `bool` | |
error[E0277]: can't compare `pyo3::Bound<'_, PyInt>` with `pyo3::Bound<'_, PyInt>` | |
--> src/rust/src/backend/dsa.rs:394:31 | |
| | |
394 | Ok(self.x.bind(py).eq(other.x.bind(py))? | |
| -- ^^^^^^^^^^^^^^^^ no implementation for `pyo3::Bound<'_, PyInt> == pyo3::Bound<'_, PyInt>` | |
| | | |
| required by a bound introduced by this call | |
| | |
= help: the trait `PartialEq<pyo3::Bound<'_, PyInt>>` is not implemented for `pyo3::Bound<'_, PyInt>` | |
= help: the following other types implement trait `PartialEq<Rhs>`: | |
`&pyo3::Bound<'_, PyBool>` implements `PartialEq<bool>` | |
`&pyo3::Bound<'_, PyBytes>` implements `PartialEq<[u8]>` | |
`&pyo3::Bound<'_, PyFloat>` implements `PartialEq<f32>` | |
`&pyo3::Bound<'_, PyFloat>` implements `PartialEq<f64>` | |
`&pyo3::Bound<'_, PyString>` implements `PartialEq<str>` | |
`pyo3::Bound<'_, PyBool>` implements `PartialEq<&bool>` | |
`pyo3::Bound<'_, PyBool>` implements `PartialEq<bool>` | |
`pyo3::Bound<'_, PyBytes>` implements `PartialEq<&[u8]>` | |
and 19 others | |
error[E0277]: the `?` operator can only be applied to values that implement `Try` | |
--> src/rust/src/backend/dsa.rs:394:12 | |
| | |
394 | Ok(self.x.bind(py).eq(other.x.bind(py))? | |
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the `?` operator cannot be applied to type `bool` | |
| | |
= help: the trait `Try` is not implemented for `bool` | |
error[E0277]: can't compare `pyo3::Bound<'_, PyInt>` with `pyo3::Bound<'_, PyInt>` | |
--> src/rust/src/backend/dsa.rs:443:31 | |
| | |
443 | Ok(self.y.bind(py).eq(other.y.bind(py))? | |
| -- ^^^^^^^^^^^^^^^^ no implementation for `pyo3::Bound<'_, PyInt> == pyo3::Bound<'_, PyInt>` | |
| | | |
| required by a bound introduced by this call | |
| | |
= help: the trait `PartialEq<pyo3::Bound<'_, PyInt>>` is not implemented for `pyo3::Bound<'_, PyInt>` | |
= help: the following other types implement trait `PartialEq<Rhs>`: | |
`&pyo3::Bound<'_, PyBool>` implements `PartialEq<bool>` | |
`&pyo3::Bound<'_, PyBytes>` implements `PartialEq<[u8]>` | |
`&pyo3::Bound<'_, PyFloat>` implements `PartialEq<f32>` | |
`&pyo3::Bound<'_, PyFloat>` implements `PartialEq<f64>` | |
`&pyo3::Bound<'_, PyString>` implements `PartialEq<str>` | |
`pyo3::Bound<'_, PyBool>` implements `PartialEq<&bool>` | |
`pyo3::Bound<'_, PyBool>` implements `PartialEq<bool>` | |
`pyo3::Bound<'_, PyBytes>` implements `PartialEq<&[u8]>` | |
and 19 others | |
error[E0277]: the `?` operator can only be applied to values that implement `Try` | |
--> src/rust/src/backend/dsa.rs:443:12 | |
| | |
443 | Ok(self.y.bind(py).eq(other.y.bind(py))? | |
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the `?` operator cannot be applied to type `bool` | |
| | |
= help: the trait `Try` is not implemented for `bool` | |
error[E0277]: can't compare `pyo3::Bound<'_, PyInt>` with `pyo3::Bound<'_, PyInt>` | |
--> src/rust/src/backend/dsa.rs:494:31 | |
| | |
494 | Ok(self.p.bind(py).eq(other.p.bind(py))? | |
| -- ^^^^^^^^^^^^^^^^ no implementation for `pyo3::Bound<'_, PyInt> == pyo3::Bound<'_, PyInt>` | |
| | | |
| required by a bound introduced by this call | |
| | |
= help: the trait `PartialEq<pyo3::Bound<'_, PyInt>>` is not implemented for `pyo3::Bound<'_, PyInt>` | |
= help: the following other types implement trait `PartialEq<Rhs>`: | |
`&pyo3::Bound<'_, PyBool>` implements `PartialEq<bool>` | |
`&pyo3::Bound<'_, PyBytes>` implements `PartialEq<[u8]>` | |
`&pyo3::Bound<'_, PyFloat>` implements `PartialEq<f32>` | |
`&pyo3::Bound<'_, PyFloat>` implements `PartialEq<f64>` | |
`&pyo3::Bound<'_, PyString>` implements `PartialEq<str>` | |
`pyo3::Bound<'_, PyBool>` implements `PartialEq<&bool>` | |
`pyo3::Bound<'_, PyBool>` implements `PartialEq<bool>` | |
`pyo3::Bound<'_, PyBytes>` implements `PartialEq<&[u8]>` | |
and 19 others | |
error[E0277]: the `?` operator can only be applied to values that implement `Try` | |
--> src/rust/src/backend/dsa.rs:494:12 | |
| | |
494 | Ok(self.p.bind(py).eq(other.p.bind(py))? | |
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the `?` operator cannot be applied to type `bool` | |
| | |
= help: the trait `Try` is not implemented for `bool` | |
error[E0277]: can't compare `pyo3::Bound<'_, PyInt>` with `pyo3::Bound<'_, PyInt>` | |
--> src/rust/src/backend/dsa.rs:495:35 | |
| | |
495 | && self.q.bind(py).eq(other.q.bind(py))? | |
| -- ^^^^^^^^^^^^^^^^ no implementation for `pyo3::Bound<'_, PyInt> == pyo3::Bound<'_, PyInt>` | |
| | | |
| required by a bound introduced by this call | |
| | |
= help: the trait `PartialEq<pyo3::Bound<'_, PyInt>>` is not implemented for `pyo3::Bound<'_, PyInt>` | |
= help: the following other types implement trait `PartialEq<Rhs>`: | |
`&pyo3::Bound<'_, PyBool>` implements `PartialEq<bool>` | |
`&pyo3::Bound<'_, PyBytes>` implements `PartialEq<[u8]>` | |
`&pyo3::Bound<'_, PyFloat>` implements `PartialEq<f32>` | |
`&pyo3::Bound<'_, PyFloat>` implements `PartialEq<f64>` | |
`&pyo3::Bound<'_, PyString>` implements `PartialEq<str>` | |
`pyo3::Bound<'_, PyBool>` implements `PartialEq<&bool>` | |
`pyo3::Bound<'_, PyBool>` implements `PartialEq<bool>` | |
`pyo3::Bound<'_, PyBytes>` implements `PartialEq<&[u8]>` | |
and 19 others | |
error[E0277]: the `?` operator can only be applied to values that implement `Try` | |
--> src/rust/src/backend/dsa.rs:495:16 | |
| | |
495 | && self.q.bind(py).eq(other.q.bind(py))? | |
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the `?` operator cannot be applied to type `bool` | |
| | |
= help: the trait `Try` is not implemented for `bool` | |
error[E0277]: can't compare `pyo3::Bound<'_, PyInt>` with `pyo3::Bound<'_, PyInt>` | |
--> src/rust/src/backend/dsa.rs:496:35 | |
| | |
496 | && self.g.bind(py).eq(other.g.bind(py))?) | |
| -- ^^^^^^^^^^^^^^^^ no implementation for `pyo3::Bound<'_, PyInt> == pyo3::Bound<'_, PyInt>` | |
| | | |
| required by a bound introduced by this call | |
| | |
= help: the trait `PartialEq<pyo3::Bound<'_, PyInt>>` is not implemented for `pyo3::Bound<'_, PyInt>` | |
= help: the following other types implement trait `PartialEq<Rhs>`: | |
`&pyo3::Bound<'_, PyBool>` implements `PartialEq<bool>` | |
`&pyo3::Bound<'_, PyBytes>` implements `PartialEq<[u8]>` | |
`&pyo3::Bound<'_, PyFloat>` implements `PartialEq<f32>` | |
`&pyo3::Bound<'_, PyFloat>` implements `PartialEq<f64>` | |
`&pyo3::Bound<'_, PyString>` implements `PartialEq<str>` | |
`pyo3::Bound<'_, PyBool>` implements `PartialEq<&bool>` | |
`pyo3::Bound<'_, PyBool>` implements `PartialEq<bool>` | |
`pyo3::Bound<'_, PyBytes>` implements `PartialEq<&[u8]>` | |
and 19 others | |
error[E0277]: the `?` operator can only be applied to values that implement `Try` | |
--> src/rust/src/backend/dsa.rs:496:16 | |
| | |
496 | && self.g.bind(py).eq(other.g.bind(py))?) | |
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the `?` operator cannot be applied to type `bool` | |
| | |
= help: the trait `Try` is not implemented for `bool` | |
warning: use of deprecated associated function `pyo3::PyErr::warn_bound`: renamed to `PyErr::warn` | |
--> src/rust/src/backend/ec.rs:38:26 | |
| | |
38 | pyo3::PyErr::warn_bound(py, &warning_cls, warning_msg, 1)?; | |
| ^^^^^^^^^^ | |
warning: use of deprecated associated function `pyo3::types::PyBytes::new_bound_with`: renamed to `PyBytes::new_with` | |
--> src/rust/src/backend/ec.rs:260:34 | |
| | |
260 | Ok(pyo3::types::PyBytes::new_bound_with(py, len, |b| { | |
| ^^^^^^^^^^^^^^ | |
warning: use of deprecated associated function `pyo3::types::PyBytes::new_bound`: renamed to `PyBytes::new` | |
--> src/rust/src/backend/ec.rs:317:34 | |
| | |
317 | Ok(pyo3::types::PyBytes::new_bound(py, &sig)) | |
| ^^^^^^^^^ | |
error[E0277]: can't compare `pyo3::Bound<'_, PyInt>` with `pyo3::Bound<'_, PyInt>` | |
--> src/rust/src/backend/ec.rs:569:17 | |
| | |
569 | .eq(other.private_value.bind(py))? | |
| -- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ no implementation for `pyo3::Bound<'_, PyInt> == pyo3::Bound<'_, PyInt>` | |
| | | |
| required by a bound introduced by this call | |
| | |
= help: the trait `PartialEq<pyo3::Bound<'_, PyInt>>` is not implemented for `pyo3::Bound<'_, PyInt>` | |
= help: the following other types implement trait `PartialEq<Rhs>`: | |
`&pyo3::Bound<'_, PyBool>` implements `PartialEq<bool>` | |
`&pyo3::Bound<'_, PyBytes>` implements `PartialEq<[u8]>` | |
`&pyo3::Bound<'_, PyFloat>` implements `PartialEq<f32>` | |
`&pyo3::Bound<'_, PyFloat>` implements `PartialEq<f64>` | |
`&pyo3::Bound<'_, PyString>` implements `PartialEq<str>` | |
`pyo3::Bound<'_, PyBool>` implements `PartialEq<&bool>` | |
`pyo3::Bound<'_, PyBool>` implements `PartialEq<bool>` | |
`pyo3::Bound<'_, PyBytes>` implements `PartialEq<&[u8]>` | |
and 19 others | |
error[E0277]: the `?` operator can only be applied to values that implement `Try` | |
--> src/rust/src/backend/ec.rs:566:12 | |
| | |
566 | Ok(self | |
| ____________^ | |
567 | | .private_value | |
568 | | .bind(py) | |
569 | | .eq(other.private_value.bind(py))? | |
| |______________________________________________^ the `?` operator cannot be applied to type `bool` | |
| | |
= help: the trait `Try` is not implemented for `bool` | |
error[E0277]: can't compare `pyo3::Bound<'_, PyInt>` with `pyo3::Bound<'_, PyInt>` | |
--> src/rust/src/backend/ec.rs:631:31 | |
| | |
631 | Ok(self.x.bind(py).eq(other.x.bind(py))? | |
| -- ^^^^^^^^^^^^^^^^ no implementation for `pyo3::Bound<'_, PyInt> == pyo3::Bound<'_, PyInt>` | |
| | | |
| required by a bound introduced by this call | |
| | |
= help: the trait `PartialEq<pyo3::Bound<'_, PyInt>>` is not implemented for `pyo3::Bound<'_, PyInt>` | |
= help: the following other types implement trait `PartialEq<Rhs>`: | |
`&pyo3::Bound<'_, PyBool>` implements `PartialEq<bool>` | |
`&pyo3::Bound<'_, PyBytes>` implements `PartialEq<[u8]>` | |
`&pyo3::Bound<'_, PyFloat>` implements `PartialEq<f32>` | |
`&pyo3::Bound<'_, PyFloat>` implements `PartialEq<f64>` | |
`&pyo3::Bound<'_, PyString>` implements `PartialEq<str>` | |
`pyo3::Bound<'_, PyBool>` implements `PartialEq<&bool>` | |
`pyo3::Bound<'_, PyBool>` implements `PartialEq<bool>` | |
`pyo3::Bound<'_, PyBytes>` implements `PartialEq<&[u8]>` | |
and 19 others | |
error[E0277]: the `?` operator can only be applied to values that implement `Try` | |
--> src/rust/src/backend/ec.rs:631:12 | |
| | |
631 | Ok(self.x.bind(py).eq(other.x.bind(py))? | |
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the `?` operator cannot be applied to type `bool` | |
| | |
= help: the trait `Try` is not implemented for `bool` | |
error[E0277]: can't compare `pyo3::Bound<'_, PyInt>` with `pyo3::Bound<'_, PyInt>` | |
--> src/rust/src/backend/ec.rs:632:35 | |
| | |
632 | && self.y.bind(py).eq(other.y.bind(py))? | |
| -- ^^^^^^^^^^^^^^^^ no implementation for `pyo3::Bound<'_, PyInt> == pyo3::Bound<'_, PyInt>` | |
| | | |
| required by a bound introduced by this call | |
| | |
= help: the trait `PartialEq<pyo3::Bound<'_, PyInt>>` is not implemented for `pyo3::Bound<'_, PyInt>` | |
= help: the following other types implement trait `PartialEq<Rhs>`: | |
`&pyo3::Bound<'_, PyBool>` implements `PartialEq<bool>` | |
`&pyo3::Bound<'_, PyBytes>` implements `PartialEq<[u8]>` | |
`&pyo3::Bound<'_, PyFloat>` implements `PartialEq<f32>` | |
`&pyo3::Bound<'_, PyFloat>` implements `PartialEq<f64>` | |
`&pyo3::Bound<'_, PyString>` implements `PartialEq<str>` | |
`pyo3::Bound<'_, PyBool>` implements `PartialEq<&bool>` | |
`pyo3::Bound<'_, PyBool>` implements `PartialEq<bool>` | |
`pyo3::Bound<'_, PyBytes>` implements `PartialEq<&[u8]>` | |
and 19 others | |
error[E0277]: the `?` operator can only be applied to values that implement `Try` | |
--> src/rust/src/backend/ec.rs:632:16 | |
| | |
632 | && self.y.bind(py).eq(other.y.bind(py))? | |
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the `?` operator cannot be applied to type `bool` | |
| | |
= help: the trait `Try` is not implemented for `bool` | |
warning: use of deprecated associated function `pyo3::types::PyBytes::new_bound_with`: renamed to `PyBytes::new_with` | |
--> src/rust/src/backend/ed25519.rs:73:34 | |
| | |
73 | Ok(pyo3::types::PyBytes::new_bound_with(py, len, |b| { | |
| ^^^^^^^^^^^^^^ | |
warning: use of deprecated associated function `pyo3::types::PyBytes::new_bound`: renamed to `PyBytes::new` | |
--> src/rust/src/backend/ed25519.rs:97:34 | |
| | |
97 | Ok(pyo3::types::PyBytes::new_bound(py, &raw_bytes)) | |
| ^^^^^^^^^ | |
warning: use of deprecated associated function `pyo3::types::PyBytes::new_bound`: renamed to `PyBytes::new` | |
--> src/rust/src/backend/ed25519.rs:141:34 | |
| | |
141 | Ok(pyo3::types::PyBytes::new_bound(py, &raw_bytes)) | |
| ^^^^^^^^^ | |
warning: use of deprecated associated function `pyo3::types::PyBytes::new_bound_with`: renamed to `PyBytes::new_with` | |
--> src/rust/src/backend/ed448.rs:71:34 | |
| | |
71 | Ok(pyo3::types::PyBytes::new_bound_with(py, len, |b| { | |
| ^^^^^^^^^^^^^^ | |
warning: use of deprecated associated function `pyo3::types::PyBytes::new_bound`: renamed to `PyBytes::new` | |
--> src/rust/src/backend/ed448.rs:95:34 | |
| | |
95 | Ok(pyo3::types::PyBytes::new_bound(py, &raw_bytes)) | |
| ^^^^^^^^^ | |
warning: use of deprecated associated function `pyo3::types::PyBytes::new_bound`: renamed to `PyBytes::new` | |
--> src/rust/src/backend/ed448.rs:138:34 | |
| | |
138 | Ok(pyo3::types::PyBytes::new_bound(py, &raw_bytes)) | |
| ^^^^^^^^^ | |
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/rust/src/backend/hashes.rs:96:42 | |
| | |
96 | algorithm: algorithm.clone().into_py(py), | |
| ^^^^^^^ | |
warning: use of deprecated associated function `pyo3::types::PyBytes::new_bound_with`: renamed to `PyBytes::new_with` | |
--> src/rust/src/backend/hashes.rs:118:52 | |
| | |
118 | let result = pyo3::types::PyBytes::new_bound_with(py, digest_size, |b| { | |
| ^^^^^^^^^^^^^^ | |
warning: use of deprecated associated function `pyo3::types::PyBytes::new_bound`: renamed to `PyBytes::new` | |
--> src/rust/src/backend/hashes.rs:129:34 | |
| | |
129 | Ok(pyo3::types::PyBytes::new_bound(py, &data)) | |
| ^^^^^^^^^ | |
warning: use of deprecated associated function `pyo3::types::PyBytes::new_bound`: renamed to `PyBytes::new` | |
--> src/rust/src/backend/hmac.rs:86:34 | |
| | |
86 | Ok(pyo3::types::PyBytes::new_bound(py, &data)) | |
| ^^^^^^^^^ | |
warning: use of deprecated associated function `pyo3::types::PyBytes::new_bound_with`: renamed to `PyBytes::new_with` | |
--> src/rust/src/backend/kdf.rs:24:30 | |
| | |
24 | Ok(pyo3::types::PyBytes::new_bound_with(py, length, |b| { | |
| ^^^^^^^^^^^^^^ | |
warning: use of deprecated associated function `pyo3::types::PyBytes::new_bound_with`: renamed to `PyBytes::new_with` | |
--> src/rust/src/backend/kdf.rs:128:34 | |
| | |
128 | Ok(pyo3::types::PyBytes::new_bound_with( | |
| ^^^^^^^^^^^^^^ | |
warning: use of deprecated associated function `pyo3::types::PyBytes::new_bound_with`: renamed to `PyBytes::new_with` | |
--> src/rust/src/backend/kdf.rs:289:34 | |
| | |
289 | Ok(pyo3::types::PyBytes::new_bound_with( | |
| ^^^^^^^^^^^^^^ | |
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/rust/src/backend/keys.rs:73:10 | |
| | |
73 | .into_py(py)), | |
| ^^^^^^^ | |
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/rust/src/backend/keys.rs:84:22 | |
| | |
84 | .into_py(py), | |
| ^^^^^^^ | |
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/rust/src/backend/keys.rs:88:69 | |
| | |
88 | Ok(crate::backend::ec::private_key_from_pkey(py, pkey)?.into_py(py)) | |
| ^^^^^^^ | |
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/rust/src/backend/keys.rs:91:68 | |
| | |
91 | Ok(crate::backend::x25519::private_key_from_pkey(pkey).into_py(py)) | |
| ^^^^^^^ | |
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/rust/src/backend/keys.rs:96:66 | |
| | |
96 | Ok(crate::backend::x448::private_key_from_pkey(pkey).into_py(py)) | |
| ^^^^^^^ | |
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/rust/src/backend/keys.rs:100:69 | |
| | |
100 | Ok(crate::backend::ed25519::private_key_from_pkey(pkey).into_py(py)) | |
| ^^^^^^^ | |
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/rust/src/backend/keys.rs:105:67 | |
| | |
105 | Ok(crate::backend::ed448::private_key_from_pkey(pkey).into_py(py)) | |
| ^^^^^^^ | |
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/rust/src/backend/keys.rs:107:87 | |
| | |
107 | openssl::pkey::Id::DSA => Ok(crate::backend::dsa::private_key_from_pkey(pkey).into_py(py)), | |
| ^^^^^^^ | |
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/rust/src/backend/keys.rs:108:85 | |
| | |
108 | openssl::pkey::Id::DH => Ok(crate::backend::dh::private_key_from_pkey(pkey).into_py(py)), | |
| ^^^^^^^ | |
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/rust/src/backend/keys.rs:111:86 | |
| | |
111 | openssl::pkey::Id::DHX => Ok(crate::backend::dh::private_key_from_pkey(pkey).into_py(py)), | |
| ^^^^^^^ | |
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/rust/src/backend/keys.rs:193:86 | |
| | |
193 | openssl::pkey::Id::RSA => Ok(crate::backend::rsa::public_key_from_pkey(pkey).into_py(py)), | |
| ^^^^^^^ | |
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/rust/src/backend/keys.rs:195:68 | |
| | |
195 | Ok(crate::backend::ec::public_key_from_pkey(py, pkey)?.into_py(py)) | |
| ^^^^^^^ | |
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/rust/src/backend/keys.rs:198:67 | |
| | |
198 | Ok(crate::backend::x25519::public_key_from_pkey(pkey).into_py(py)) | |
| ^^^^^^^ | |
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/rust/src/backend/keys.rs:201:88 | |
| | |
201 | openssl::pkey::Id::X448 => Ok(crate::backend::x448::public_key_from_pkey(pkey).into_py(py)), | |
| ^^^^^^^ | |
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/rust/src/backend/keys.rs:204:68 | |
| | |
204 | Ok(crate::backend::ed25519::public_key_from_pkey(pkey).into_py(py)) | |
| ^^^^^^^ | |
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/rust/src/backend/keys.rs:208:66 | |
| | |
208 | Ok(crate::backend::ed448::public_key_from_pkey(pkey).into_py(py)) | |
| ^^^^^^^ | |
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/rust/src/backend/keys.rs:211:86 | |
| | |
211 | openssl::pkey::Id::DSA => Ok(crate::backend::dsa::public_key_from_pkey(pkey).into_py(py)), | |
| ^^^^^^^ | |
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/rust/src/backend/keys.rs:212:84 | |
| | |
212 | openssl::pkey::Id::DH => Ok(crate::backend::dh::public_key_from_pkey(pkey).into_py(py)), | |
| ^^^^^^^ | |
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/rust/src/backend/keys.rs:215:85 | |
| | |
215 | openssl::pkey::Id::DHX => Ok(crate::backend::dh::public_key_from_pkey(pkey).into_py(py)), | |
| ^^^^^^^ | |
warning: use of deprecated associated function `pyo3::types::PyBytes::new_bound_with`: renamed to `PyBytes::new_with` | |
--> src/rust/src/backend/poly1305.rs:81:44 | |
| | |
81 | let result = pyo3::types::PyBytes::new_bound_with(py, self.signer.len()?, |b| { | |
| ^^^^^^^^^^^^^^ | |
warning: use of deprecated associated function `pyo3::types::PyBytes::new_bound_with`: renamed to `PyBytes::new_with` | |
--> src/rust/src/backend/rsa.rs:300:34 | |
| | |
300 | Ok(pyo3::types::PyBytes::new_bound_with(py, length, |b| { | |
| ^^^^^^^^^^^^^^ | |
warning: use of deprecated associated function `pyo3::types::PyBytes::new_bound`: renamed to `PyBytes::new` | |
--> src/rust/src/backend/rsa.rs:348:35 | |
| | |
348 | pyo3::types::PyBytes::new_bound(py, &plaintext[..*result.as_ref().unwrap_or(&length)]); | |
| ^^^^^^^^^ | |
warning: use of deprecated associated function `pyo3::types::PyBytes::new_bound_with`: renamed to `PyBytes::new_with` | |
--> src/rust/src/backend/rsa.rs:461:34 | |
| | |
461 | Ok(pyo3::types::PyBytes::new_bound_with(py, length, |b| { | |
| ^^^^^^^^^^^^^^ | |
warning: use of deprecated associated function `pyo3::types::PyBytes::new_bound`: renamed to `PyBytes::new` | |
--> src/rust/src/backend/rsa.rs:495:34 | |
| | |
495 | Ok(pyo3::types::PyBytes::new_bound(py, &buf[..length])) | |
| ^^^^^^^^^ | |
error[E0277]: can't compare `pyo3::Bound<'_, PyInt>` with `pyo3::Bound<'_, PyInt>` | |
--> src/rust/src/backend/rsa.rs:719:31 | |
| | |
719 | Ok(self.p.bind(py).eq(other.p.bind(py))? | |
| -- ^^^^^^^^^^^^^^^^ no implementation for `pyo3::Bound<'_, PyInt> == pyo3::Bound<'_, PyInt>` | |
| | | |
| required by a bound introduced by this call | |
| | |
= help: the trait `PartialEq<pyo3::Bound<'_, PyInt>>` is not implemented for `pyo3::Bound<'_, PyInt>` | |
= help: the following other types implement trait `PartialEq<Rhs>`: | |
`&pyo3::Bound<'_, PyBool>` implements `PartialEq<bool>` | |
`&pyo3::Bound<'_, PyBytes>` implements `PartialEq<[u8]>` | |
`&pyo3::Bound<'_, PyFloat>` implements `PartialEq<f32>` | |
`&pyo3::Bound<'_, PyFloat>` implements `PartialEq<f64>` | |
`&pyo3::Bound<'_, PyString>` implements `PartialEq<str>` | |
`pyo3::Bound<'_, PyBool>` implements `PartialEq<&bool>` | |
`pyo3::Bound<'_, PyBool>` implements `PartialEq<bool>` | |
`pyo3::Bound<'_, PyBytes>` implements `PartialEq<&[u8]>` | |
and 19 others | |
error[E0277]: the `?` operator can only be applied to values that implement `Try` | |
--> src/rust/src/backend/rsa.rs:719:12 | |
| | |
719 | Ok(self.p.bind(py).eq(other.p.bind(py))? | |
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the `?` operator cannot be applied to type `bool` | |
| | |
= help: the trait `Try` is not implemented for `bool` | |
error[E0277]: can't compare `pyo3::Bound<'_, PyInt>` with `pyo3::Bound<'_, PyInt>` | |
--> src/rust/src/backend/rsa.rs:720:35 | |
| | |
720 | && self.q.bind(py).eq(other.q.bind(py))? | |
| -- ^^^^^^^^^^^^^^^^ no implementation for `pyo3::Bound<'_, PyInt> == pyo3::Bound<'_, PyInt>` | |
| | | |
| required by a bound introduced by this call | |
| | |
= help: the trait `PartialEq<pyo3::Bound<'_, PyInt>>` is not implemented for `pyo3::Bound<'_, PyInt>` | |
= help: the following other types implement trait `PartialEq<Rhs>`: | |
`&pyo3::Bound<'_, PyBool>` implements `PartialEq<bool>` | |
`&pyo3::Bound<'_, PyBytes>` implements `PartialEq<[u8]>` | |
`&pyo3::Bound<'_, PyFloat>` implements `PartialEq<f32>` | |
`&pyo3::Bound<'_, PyFloat>` implements `PartialEq<f64>` | |
`&pyo3::Bound<'_, PyString>` implements `PartialEq<str>` | |
`pyo3::Bound<'_, PyBool>` implements `PartialEq<&bool>` | |
`pyo3::Bound<'_, PyBool>` implements `PartialEq<bool>` | |
`pyo3::Bound<'_, PyBytes>` implements `PartialEq<&[u8]>` | |
and 19 others | |
error[E0277]: the `?` operator can only be applied to values that implement `Try` | |
--> src/rust/src/backend/rsa.rs:720:16 | |
| | |
720 | && self.q.bind(py).eq(other.q.bind(py))? | |
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the `?` operator cannot be applied to type `bool` | |
| | |
= help: the trait `Try` is not implemented for `bool` | |
error[E0277]: can't compare `pyo3::Bound<'_, PyInt>` with `pyo3::Bound<'_, PyInt>` | |
--> src/rust/src/backend/rsa.rs:721:35 | |
| | |
721 | && self.d.bind(py).eq(other.d.bind(py))? | |
| -- ^^^^^^^^^^^^^^^^ no implementation for `pyo3::Bound<'_, PyInt> == pyo3::Bound<'_, PyInt>` | |
| | | |
| required by a bound introduced by this call | |
| | |
= help: the trait `PartialEq<pyo3::Bound<'_, PyInt>>` is not implemented for `pyo3::Bound<'_, PyInt>` | |
= help: the following other types implement trait `PartialEq<Rhs>`: | |
`&pyo3::Bound<'_, PyBool>` implements `PartialEq<bool>` | |
`&pyo3::Bound<'_, PyBytes>` implements `PartialEq<[u8]>` | |
`&pyo3::Bound<'_, PyFloat>` implements `PartialEq<f32>` | |
`&pyo3::Bound<'_, PyFloat>` implements `PartialEq<f64>` | |
`&pyo3::Bound<'_, PyString>` implements `PartialEq<str>` | |
`pyo3::Bound<'_, PyBool>` implements `PartialEq<&bool>` | |
`pyo3::Bound<'_, PyBool>` implements `PartialEq<bool>` | |
`pyo3::Bound<'_, PyBytes>` implements `PartialEq<&[u8]>` | |
and 19 others | |
error[E0277]: the `?` operator can only be applied to values that implement `Try` | |
--> src/rust/src/backend/rsa.rs:721:16 | |
| | |
721 | && self.d.bind(py).eq(other.d.bind(py))? | |
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the `?` operator cannot be applied to type `bool` | |
| | |
= help: the trait `Try` is not implemented for `bool` | |
error[E0277]: can't compare `pyo3::Bound<'_, PyInt>` with `pyo3::Bound<'_, PyInt>` | |
--> src/rust/src/backend/rsa.rs:722:38 | |
| | |
722 | && self.dmp1.bind(py).eq(other.dmp1.bind(py))? | |
| -- ^^^^^^^^^^^^^^^^^^^ no implementation for `pyo3::Bound<'_, PyInt> == pyo3::Bound<'_, PyInt>` | |
| | | |
| required by a bound introduced by this call | |
| | |
= help: the trait `PartialEq<pyo3::Bound<'_, PyInt>>` is not implemented for `pyo3::Bound<'_, PyInt>` | |
= help: the following other types implement trait `PartialEq<Rhs>`: | |
`&pyo3::Bound<'_, PyBool>` implements `PartialEq<bool>` | |
`&pyo3::Bound<'_, PyBytes>` implements `PartialEq<[u8]>` | |
`&pyo3::Bound<'_, PyFloat>` implements `PartialEq<f32>` | |
`&pyo3::Bound<'_, PyFloat>` implements `PartialEq<f64>` | |
`&pyo3::Bound<'_, PyString>` implements `PartialEq<str>` | |
`pyo3::Bound<'_, PyBool>` implements `PartialEq<&bool>` | |
`pyo3::Bound<'_, PyBool>` implements `PartialEq<bool>` | |
`pyo3::Bound<'_, PyBytes>` implements `PartialEq<&[u8]>` | |
and 19 others | |
error[E0277]: the `?` operator can only be applied to values that implement `Try` | |
--> src/rust/src/backend/rsa.rs:722:16 | |
| | |
722 | && self.dmp1.bind(py).eq(other.dmp1.bind(py))? | |
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the `?` operator cannot be applied to type `bool` | |
| | |
= help: the trait `Try` is not implemented for `bool` | |
error[E0277]: can't compare `pyo3::Bound<'_, PyInt>` with `pyo3::Bound<'_, PyInt>` | |
--> src/rust/src/backend/rsa.rs:723:38 | |
| | |
723 | && self.dmq1.bind(py).eq(other.dmq1.bind(py))? | |
| -- ^^^^^^^^^^^^^^^^^^^ no implementation for `pyo3::Bound<'_, PyInt> == pyo3::Bound<'_, PyInt>` | |
| | | |
| required by a bound introduced by this call | |
| | |
= help: the trait `PartialEq<pyo3::Bound<'_, PyInt>>` is not implemented for `pyo3::Bound<'_, PyInt>` | |
= help: the following other types implement trait `PartialEq<Rhs>`: | |
`&pyo3::Bound<'_, PyBool>` implements `PartialEq<bool>` | |
`&pyo3::Bound<'_, PyBytes>` implements `PartialEq<[u8]>` | |
`&pyo3::Bound<'_, PyFloat>` implements `PartialEq<f32>` | |
`&pyo3::Bound<'_, PyFloat>` implements `PartialEq<f64>` | |
`&pyo3::Bound<'_, PyString>` implements `PartialEq<str>` | |
`pyo3::Bound<'_, PyBool>` implements `PartialEq<&bool>` | |
`pyo3::Bound<'_, PyBool>` implements `PartialEq<bool>` | |
`pyo3::Bound<'_, PyBytes>` implements `PartialEq<&[u8]>` | |
and 19 others | |
error[E0277]: the `?` operator can only be applied to values that implement `Try` | |
--> src/rust/src/backend/rsa.rs:723:16 | |
| | |
723 | && self.dmq1.bind(py).eq(other.dmq1.bind(py))? | |
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the `?` operator cannot be applied to type `bool` | |
| | |
= help: the trait `Try` is not implemented for `bool` | |
error[E0277]: can't compare `pyo3::Bound<'_, PyInt>` with `pyo3::Bound<'_, PyInt>` | |
--> src/rust/src/backend/rsa.rs:724:38 | |
| | |
724 | && self.iqmp.bind(py).eq(other.iqmp.bind(py))? | |
| -- ^^^^^^^^^^^^^^^^^^^ no implementation for `pyo3::Bound<'_, PyInt> == pyo3::Bound<'_, PyInt>` | |
| | | |
| required by a bound introduced by this call | |
| | |
= help: the trait `PartialEq<pyo3::Bound<'_, PyInt>>` is not implemented for `pyo3::Bound<'_, PyInt>` | |
= help: the following other types implement trait `PartialEq<Rhs>`: | |
`&pyo3::Bound<'_, PyBool>` implements `PartialEq<bool>` | |
`&pyo3::Bound<'_, PyBytes>` implements `PartialEq<[u8]>` | |
`&pyo3::Bound<'_, PyFloat>` implements `PartialEq<f32>` | |
`&pyo3::Bound<'_, PyFloat>` implements `PartialEq<f64>` | |
`&pyo3::Bound<'_, PyString>` implements `PartialEq<str>` | |
`pyo3::Bound<'_, PyBool>` implements `PartialEq<&bool>` | |
`pyo3::Bound<'_, PyBool>` implements `PartialEq<bool>` | |
`pyo3::Bound<'_, PyBytes>` implements `PartialEq<&[u8]>` | |
and 19 others | |
error[E0277]: the `?` operator can only be applied to values that implement `Try` | |
--> src/rust/src/backend/rsa.rs:724:16 | |
| | |
724 | && self.iqmp.bind(py).eq(other.iqmp.bind(py))? | |
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the `?` operator cannot be applied to type `bool` | |
| | |
= help: the trait `Try` is not implemented for `bool` | |
error[E0277]: can't compare `pyo3::Bound<'_, PyInt>` with `pyo3::Bound<'_, PyInt>` | |
--> src/rust/src/backend/rsa.rs:800:31 | |
| | |
800 | Ok(self.e.bind(py).eq(other.e.bind(py))? && self.n.bind(py).eq(other.n.bind(py))?) | |
| -- ^^^^^^^^^^^^^^^^ no implementation for `pyo3::Bound<'_, PyInt> == pyo3::Bound<'_, PyInt>` | |
| | | |
| required by a bound introduced by this call | |
| | |
= help: the trait `PartialEq<pyo3::Bound<'_, PyInt>>` is not implemented for `pyo3::Bound<'_, PyInt>` | |
= help: the following other types implement trait `PartialEq<Rhs>`: | |
`&pyo3::Bound<'_, PyBool>` implements `PartialEq<bool>` | |
`&pyo3::Bound<'_, PyBytes>` implements `PartialEq<[u8]>` | |
`&pyo3::Bound<'_, PyFloat>` implements `PartialEq<f32>` | |
`&pyo3::Bound<'_, PyFloat>` implements `PartialEq<f64>` | |
`&pyo3::Bound<'_, PyString>` implements `PartialEq<str>` | |
`pyo3::Bound<'_, PyBool>` implements `PartialEq<&bool>` | |
`pyo3::Bound<'_, PyBool>` implements `PartialEq<bool>` | |
`pyo3::Bound<'_, PyBytes>` implements `PartialEq<&[u8]>` | |
and 19 others | |
error[E0277]: the `?` operator can only be applied to values that implement `Try` | |
--> src/rust/src/backend/rsa.rs:800:12 | |
| | |
800 | Ok(self.e.bind(py).eq(other.e.bind(py))? && self.n.bind(py).eq(other.n.bind(py))?) | |
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the `?` operator cannot be applied to type `bool` | |
| | |
= help: the trait `Try` is not implemented for `bool` | |
error[E0277]: can't compare `pyo3::Bound<'_, PyInt>` with `pyo3::Bound<'_, PyInt>` | |
--> src/rust/src/backend/rsa.rs:800:72 | |
| | |
800 | Ok(self.e.bind(py).eq(other.e.bind(py))? && self.n.bind(py).eq(other.n.bind(py))?) | |
| -- ^^^^^^^^^^^^^^^^ no implementation for `pyo3::Bound<'_, PyInt> == pyo3::Bound<'_, PyInt>` | |
| | | |
| required by a bound introduced by this call | |
| | |
= help: the trait `PartialEq<pyo3::Bound<'_, PyInt>>` is not implemented for `pyo3::Bound<'_, PyInt>` | |
= help: the following other types implement trait `PartialEq<Rhs>`: | |
`&pyo3::Bound<'_, PyBool>` implements `PartialEq<bool>` | |
`&pyo3::Bound<'_, PyBytes>` implements `PartialEq<[u8]>` | |
`&pyo3::Bound<'_, PyFloat>` implements `PartialEq<f32>` | |
`&pyo3::Bound<'_, PyFloat>` implements `PartialEq<f64>` | |
`&pyo3::Bound<'_, PyString>` implements `PartialEq<str>` | |
`pyo3::Bound<'_, PyBool>` implements `PartialEq<&bool>` | |
`pyo3::Bound<'_, PyBool>` implements `PartialEq<bool>` | |
`pyo3::Bound<'_, PyBytes>` implements `PartialEq<&[u8]>` | |
and 19 others | |
error[E0277]: the `?` operator can only be applied to values that implement `Try` | |
--> src/rust/src/backend/rsa.rs:800:53 | |
| | |
800 | Ok(self.e.bind(py).eq(other.e.bind(py))? && self.n.bind(py).eq(other.n.bind(py))?) | |
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the `?` operator cannot be applied to type `bool` | |
| | |
= help: the trait `Try` is not implemented for `bool` | |
warning: use of deprecated method `pyo3::Python::<'py>::get_type_bound`: renamed to `Python::get_type` | |
--> src/rust/src/backend/utils.rs:33:23 | |
| | |
33 | let int_type = py.get_type_bound::<pyo3::types::PyLong>(); | |
| ^^^^^^^^^^^^^^ | |
warning: use of deprecated associated function `pyo3::types::PyBytes::new_bound`: renamed to `PyBytes::new` | |
--> src/rust/src/backend/utils.rs:90:41 | |
| | |
90 | return Ok(pyo3::types::PyBytes::new_bound(py, &raw_bytes)); | |
| ^^^^^^^^^ | |
warning: use of deprecated associated function `pyo3::types::PyBytes::new_bound`: renamed to `PyBytes::new` | |
--> src/rust/src/backend/utils.rs:130:45 | |
| | |
130 | return Ok(pyo3::types::PyBytes::new_bound(py, &pem_bytes)); | |
| ^^^^^^^^^ | |
warning: use of deprecated associated function `pyo3::types::PyBytes::new_bound`: renamed to `PyBytes::new` | |
--> src/rust/src/backend/utils.rs:140:45 | |
| | |
140 | return Ok(pyo3::types::PyBytes::new_bound(py, &der_bytes)); | |
| ^^^^^^^^^ | |
warning: use of deprecated associated function `pyo3::types::PyBytes::new_bound`: renamed to `PyBytes::new` | |
--> src/rust/src/backend/utils.rs:165:49 | |
| | |
165 | return Ok(pyo3::types::PyBytes::new_bound(py, &pem_bytes)); | |
| ^^^^^^^^^ | |
warning: use of deprecated associated function `pyo3::types::PyBytes::new_bound`: renamed to `PyBytes::new` | |
--> src/rust/src/backend/utils.rs:176:49 | |
| | |
176 | return Ok(pyo3::types::PyBytes::new_bound(py, &der_bytes)); | |
| ^^^^^^^^^ | |
warning: use of deprecated associated function `pyo3::types::PyBytes::new_bound`: renamed to `PyBytes::new` | |
--> src/rust/src/backend/utils.rs:188:49 | |
| | |
188 | return Ok(pyo3::types::PyBytes::new_bound(py, &pem_bytes)); | |
| ^^^^^^^^^ | |
warning: use of deprecated associated function `pyo3::types::PyBytes::new_bound`: renamed to `PyBytes::new` | |
--> src/rust/src/backend/utils.rs:199:49 | |
| | |
199 | return Ok(pyo3::types::PyBytes::new_bound(py, &der_bytes)); | |
| ^^^^^^^^^ | |
warning: use of deprecated associated function `pyo3::types::PyBytes::new_bound`: renamed to `PyBytes::new` | |
--> src/rust/src/backend/utils.rs:211:49 | |
| | |
211 | return Ok(pyo3::types::PyBytes::new_bound(py, &pem_bytes)); | |
| ^^^^^^^^^ | |
warning: use of deprecated associated function `pyo3::types::PyBytes::new_bound`: renamed to `PyBytes::new` | |
--> src/rust/src/backend/utils.rs:222:49 | |
| | |
222 | return Ok(pyo3::types::PyBytes::new_bound(py, &der_bytes)); | |
| ^^^^^^^^^ | |
warning: use of deprecated associated function `pyo3::types::PyBytes::new_bound`: renamed to `PyBytes::new` | |
--> src/rust/src/backend/utils.rs:286:41 | |
| | |
286 | return Ok(pyo3::types::PyBytes::new_bound(py, &raw_bytes)); | |
| ^^^^^^^^^ | |
warning: use of deprecated associated function `pyo3::types::PyBytes::new_bound`: renamed to `PyBytes::new` | |
--> src/rust/src/backend/utils.rs:293:45 | |
| | |
293 | return Ok(pyo3::types::PyBytes::new_bound(py, &pem_bytes)); | |
| ^^^^^^^^^ | |
warning: use of deprecated associated function `pyo3::types::PyBytes::new_bound`: renamed to `PyBytes::new` | |
--> src/rust/src/backend/utils.rs:296:45 | |
| | |
296 | return Ok(pyo3::types::PyBytes::new_bound(py, &der_bytes)); | |
| ^^^^^^^^^ | |
warning: use of deprecated associated function `pyo3::types::PyBytes::new_bound`: renamed to `PyBytes::new` | |
--> src/rust/src/backend/utils.rs:322:45 | |
| | |
322 | return Ok(pyo3::types::PyBytes::new_bound(py, &data)); | |
| ^^^^^^^^^ | |
warning: use of deprecated associated function `pyo3::types::PyBytes::new_bound`: renamed to `PyBytes::new` | |
--> src/rust/src/backend/utils.rs:330:49 | |
| | |
330 | return Ok(pyo3::types::PyBytes::new_bound(py, &pem_bytes)); | |
| ^^^^^^^^^ | |
warning: use of deprecated associated function `pyo3::types::PyBytes::new_bound`: renamed to `PyBytes::new` | |
--> src/rust/src/backend/utils.rs:333:49 | |
| | |
333 | return Ok(pyo3::types::PyBytes::new_bound(py, &der_bytes)); | |
| ^^^^^^^^^ | |
error[E0277]: can't compare `usize` with `()` | |
--> src/rust/src/backend/utils.rs:396:30 | |
| | |
396 | if data.as_bytes().len() != algorithm.getattr("digest_size")?.extract()? { | |
| ^^ no implementation for `usize == ()` | |
| | |
= help: the trait `PartialEq<()>` is not implemented for `usize` | |
= help: the following other types implement trait `PartialEq<Rhs>`: | |
`usize` implements `PartialEq<pyo3::Bound<'_, PyInt>>` | |
`usize` implements `PartialEq` | |
error[E0277]: the trait bound `(): FromPyObjectBound<'_, '_>` is not satisfied | |
--> src/rust/src/backend/utils.rs:396:67 | |
| | |
396 | if data.as_bytes().len() != algorithm.getattr("digest_size")?.extract()? { | |
| ^^^^^^^ the trait `PyClass` is not implemented for `()`, which is required by `(): FromPyObjectBound<'_, '_>` | |
| | |
= help: the following other types implement trait `PyClass`: | |
CertificateSigningRequest | |
DHPrivateKey | |
DHPublicKey | |
DsaPrivateKey | |
DsaPublicKey | |
ECPrivateKey | |
ECPublicKey | |
Ed25519PrivateKey | |
and 29 others | |
= note: required for `()` to implement `FromPyObject<'_>` | |
= note: required for `()` to implement `FromPyObjectBound<'_, '_>` | |
note: required by a bound in `pyo3::types::PyAnyMethods::extract` | |
--> /Users/goldbaum/Documents/pyo3/src/types/any.rs:842:12 | |
| | |
840 | fn extract<'a, T>(&'a self) -> PyResult<T> | |
| ------- required by a bound in this associated function | |
841 | where | |
842 | T: FromPyObjectBound<'a, 'py>; | |
| ^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `PyAnyMethods::extract` | |
warning: use of deprecated method `pyo3::ToPyObject::to_object`: `ToPyObject` is going to be replaced by `IntoPyObject`. See the migration guide (https://pyo3.rs/v0.23/migration) for more information. | |
--> src/rust/src/backend/utils.rs:464:28 | |
| | |
464 | errors.to_object(py), | |
| ^^^^^^^^^ | |
warning: use of deprecated associated function `pyo3::types::PyBytes::new_bound_with`: renamed to `PyBytes::new_with` | |
--> src/rust/src/backend/x25519.rs:73:34 | |
| | |
73 | Ok(pyo3::types::PyBytes::new_bound_with( | |
| ^^^^^^^^^^^^^^ | |
warning: use of deprecated associated function `pyo3::types::PyBytes::new_bound`: renamed to `PyBytes::new` | |
--> src/rust/src/backend/x25519.rs:101:34 | |
| | |
101 | Ok(pyo3::types::PyBytes::new_bound(py, &raw_bytes)) | |
| ^^^^^^^^^ | |
warning: use of deprecated associated function `pyo3::types::PyBytes::new_bound`: renamed to `PyBytes::new` | |
--> src/rust/src/backend/x25519.rs:131:34 | |
| | |
131 | Ok(pyo3::types::PyBytes::new_bound(py, &raw_bytes)) | |
| ^^^^^^^^^ | |
warning: use of deprecated associated function `pyo3::types::PyBytes::new_bound_with`: renamed to `PyBytes::new_with` | |
--> src/rust/src/backend/x448.rs:72:34 | |
| | |
72 | Ok(pyo3::types::PyBytes::new_bound_with( | |
| ^^^^^^^^^^^^^^ | |
warning: use of deprecated associated function `pyo3::types::PyBytes::new_bound`: renamed to `PyBytes::new` | |
--> src/rust/src/backend/x448.rs:100:34 | |
| | |
100 | Ok(pyo3::types::PyBytes::new_bound(py, &raw_bytes)) | |
| ^^^^^^^^^ | |
warning: use of deprecated associated function `pyo3::types::PyBytes::new_bound`: renamed to `PyBytes::new` | |
--> src/rust/src/backend/x448.rs:130:34 | |
| | |
130 | Ok(pyo3::types::PyBytes::new_bound(py, &raw_bytes)) | |
| ^^^^^^^^^ | |
warning: use of deprecated method `pyo3::types::IntoPyDict::into_py_dict_bound`: renamed to `IntoPyDict::into_py_dict` | |
--> src/rust/src/buf.rs:22:70 | |
| | |
22 | let kwargs = [(pyo3::intern!(py, "require_writable"), true)].into_py_dict_bound(py); | |
| ^^^^^^^^^^^^^^^^^^ | |
warning: use of deprecated associated function `pyo3::types::PyList::empty_bound`: renamed to `PyList::empty` | |
--> src/rust/src/error.rs:90:39 | |
| | |
90 | let errors = pyo3::types::PyList::empty_bound(py); | |
| ^^^^^^^^^^^ | |
warning: use of deprecated method `pyo3::ToPyObject::to_object`: `ToPyObject` is going to be replaced by `IntoPyObject`. See the migration guide (https://pyo3.rs/v0.23/migration) for more information. | |
--> src/rust/src/error.rs:149:75 | |
| | |
149 | exceptions::InternalError::new_err((e.to_string(), errors.to_object(py))) | |
| ^^^^^^^^^ | |
warning: use of deprecated associated function `pyo3::types::PyList::empty_bound`: renamed to `PyList::empty` | |
--> src/rust/src/error.rs:214:37 | |
| | |
214 | let errs = pyo3::types::PyList::empty_bound(py); | |
| ^^^^^^^^^^^ | |
warning: use of deprecated associated function `pyo3::types::PyBytes::new_bound`: renamed to `PyBytes::new` | |
--> src/rust/src/padding.rs:106:42 | |
| | |
106 | Ok(pyo3::types::PyBytes::new_bound(py, &pad)) | |
| ^^^^^^^^^ | |
warning: use of deprecated associated function `pyo3::types::PyBytes::new_bound`: renamed to `PyBytes::new` | |
--> src/rust/src/padding.rs:140:42 | |
| | |
140 | Ok(pyo3::types::PyBytes::new_bound(py, result.as_slice())) | |
| ^^^^^^^^^ | |
warning: use of deprecated associated function `pyo3::types::PyBytes::new_bound`: renamed to `PyBytes::new` | |
--> src/rust/src/padding.rs:165:42 | |
| | |
165 | Ok(pyo3::types::PyBytes::new_bound(py, result)) | |
| ^^^^^^^^^ | |
warning: use of deprecated associated function `pyo3::types::PyBytes::new_bound`: renamed to `PyBytes::new` | |
--> src/rust/src/pkcs12.rs:208:51 | |
| | |
208 | .call1((pyo3::types::PyBytes::new_bound(py, &key),))?; | |
| ^^^^^^^^^ | |
warning: use of deprecated associated function `pyo3::types::PyBytes::new_bound`: renamed to `PyBytes::new` | |
--> src/rust/src/pkcs12.rs:211:51 | |
| | |
211 | .call1((pyo3::types::PyBytes::new_bound(py, &iv),))?; | |
| ^^^^^^^^^ | |
warning: use of deprecated associated function `pyo3::types::PyBytes::new_bound`: renamed to `PyBytes::new` | |
--> src/rust/src/pkcs12.rs:418:35 | |
| | |
418 | pyo3::types::PyBytes::new_bound(py, b"").extract()?, | |
| ^^^^^^^^^ | |
warning: use of deprecated method `pyo3::types::PyAnyMethods::iter`: use `try_iter` instead | |
--> src/rust/src/pkcs12.rs:543:29 | |
| | |
543 | for cert in cas.iter()? { | |
| ^^^^ | |
warning: use of deprecated associated function `pyo3::types::PyBytes::new_bound`: renamed to `PyBytes::new` | |
--> src/rust/src/pkcs12.rs:718:30 | |
| | |
718 | Ok(pyo3::types::PyBytes::new_bound( | |
| ^^^^^^^^^ | |
warning: use of deprecated associated function `pyo3::types::PyBytes::new_bound`: renamed to `PyBytes::new` | |
--> src/rust/src/pkcs12.rs:770:46 | |
| | |
770 | let cert_der = pyo3::types::PyBytes::new_bound(py, &ossl_cert.to_der()?).unbind(); | |
| ^^^^^^^^^ | |
warning: use of deprecated associated function `pyo3::types::PyList::empty_bound`: renamed to `PyList::empty` | |
--> src/rust/src/pkcs12.rs:777:49 | |
| | |
777 | let additional_certs = pyo3::types::PyList::empty_bound(py); | |
| ^^^^^^^^^^^ | |
warning: use of deprecated associated function `pyo3::types::PyBytes::new_bound`: renamed to `PyBytes::new` | |
--> src/rust/src/pkcs12.rs:790:50 | |
| | |
790 | let cert_der = pyo3::types::PyBytes::new_bound(py, &ossl_cert.to_der()?).unbind(); | |
| ^^^^^^^^^ | |
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/rust/src/pkcs12.rs:792:42 | |
| | |
792 | additional_certs.append(cert.into_py(py))?; | |
| ^^^^^^^ | |
warning: use of deprecated associated function `pyo3::types::PyBytes::new_bound`: renamed to `PyBytes::new` | |
--> src/rust/src/pkcs12.rs:817:46 | |
| | |
817 | let cert_der = pyo3::types::PyBytes::new_bound(py, &ossl_cert.to_der()?).unbind(); | |
| ^^^^^^^^^ | |
warning: use of deprecated associated function `pyo3::types::PyBytes::new_bound`: renamed to `PyBytes::new` | |
--> src/rust/src/pkcs12.rs:821:44 | |
| | |
821 | .map(|a| pyo3::types::PyBytes::new_bound(py, a).unbind()); | |
| ^^^^^^^^^ | |
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/rust/src/pkcs12.rs:823:65 | |
| | |
823 | PKCS12Certificate::new(pyo3::Py::new(py, cert)?, alias).into_py(py) | |
| ^^^^^^^ | |
warning: use of deprecated associated function `pyo3::types::PyList::empty_bound`: renamed to `PyList::empty` | |
--> src/rust/src/pkcs12.rs:827:49 | |
| | |
827 | let additional_certs = pyo3::types::PyList::empty_bound(py); | |
| ^^^^^^^^^^^ | |
warning: use of deprecated associated function `pyo3::types::PyBytes::new_bound`: renamed to `PyBytes::new` | |
--> src/rust/src/pkcs12.rs:840:50 | |
| | |
840 | let cert_der = pyo3::types::PyBytes::new_bound(py, &ossl_cert.to_der()?).unbind(); | |
| ^^^^^^^^^ | |
warning: use of deprecated associated function `pyo3::types::PyBytes::new_bound`: renamed to `PyBytes::new` | |
--> src/rust/src/pkcs12.rs:844:48 | |
| | |
844 | .map(|a| pyo3::types::PyBytes::new_bound(py, a).unbind()); | |
| ^^^^^^^^^ | |
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/rust/src/pkcs12.rs:846:84 | |
| | |
846 | let p12_cert = PKCS12Certificate::new(pyo3::Py::new(py, cert)?, alias).into_py(py); | |
| ^^^^^^^ | |
warning: use of deprecated associated function `pyo3::types::PyList::empty_bound`: renamed to `PyList::empty` | |
--> src/rust/src/pkcs7.rs:444:47 | |
| | |
444 | let result = pyo3::types::PyList::empty_bound(py); | |
| ^^^^^^^^^^^ | |
warning: use of deprecated associated function `pyo3::types::PyBytes::new_bound`: renamed to `PyBytes::new` | |
--> src/rust/src/pkcs7.rs:446:54 | |
| | |
446 | let cert_der = pyo3::types::PyBytes::new_bound(py, c.to_der()?.as_slice()).unbind(); | |
| ^^^^^^^^^ | |
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/rust/src/pkcs7.rs:448:36 | |
| | |
448 | result.append(cert.into_py(py))?; | |
| ^^^^^^^ | |
warning: use of deprecated associated function `pyo3::types::PyBytes::new_bound`: renamed to `PyBytes::new` | |
--> src/rust/src/test_support.rs:147:30 | |
| | |
147 | Ok(pyo3::types::PyBytes::new_bound(py, &result)) | |
| ^^^^^^^^^ | |
warning: use of deprecated method `pyo3::Python::<'py>::import_bound`: renamed to `Python::import` | |
--> src/rust/src/types.rs:24:30 | |
| | |
24 | let mut obj = py.import_bound(self.module)?.into_any(); | |
| ^^^^^^^^^^^^ | |
warning: use of deprecated associated function `pyo3::types::PyBytes::new_bound`: renamed to `PyBytes::new` | |
--> src/rust/src/x509/certificate.rs:146:34 | |
| | |
146 | Ok(pyo3::types::PyBytes::new_bound(py, &result)) | |
| ^^^^^^^^^ | |
warning: use of deprecated associated function `pyo3::types::PyBytes::new_bound`: renamed to `PyBytes::new` | |
--> src/rust/src/x509/certificate.rs:180:42 | |
| | |
180 | Ok(pyo3::types::PyBytes::new_bound(py, &result)) | |
| ^^^^^^^^^ | |
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/rust/src/x509/certificate.rs:186:29 | |
| | |
186 | oid_obj.into_py(py), | |
| ^^^^^^^ | |
warning: use of deprecated associated function `pyo3::types::PyBytes::new_bound`: renamed to `PyBytes::new` | |
--> src/rust/src/x509/certificate.rs:195:31 | |
| | |
195 | pyo3::types::PyBytes::new_bound(py, self.raw.borrow_dependent().signature.as_bytes()) | |
| ^^^^^^^^^ | |
warning: use of deprecated associated function `pyo3::PyErr::warn_bound`: renamed to `PyErr::warn` | |
--> src/rust/src/x509/certificate.rs:204:22 | |
| | |
204 | pyo3::PyErr::warn_bound( | |
| ^^^^^^^^^^ | |
warning: use of deprecated associated function `pyo3::PyErr::warn_bound`: renamed to `PyErr::warn` | |
--> src/rust/src/x509/certificate.rs:241:22 | |
| | |
241 | pyo3::PyErr::warn_bound( | |
| ^^^^^^^^^^ | |
warning: use of deprecated associated function `pyo3::types::PyBytes::new_bound`: renamed to `PyBytes::new` | |
--> src/rust/src/x509/certificate.rs:385:31 | |
| | |
385 | pyo3::types::PyBytes::new_bound(py, parsed.contents()).unbind(), | |
| ^^^^^^^^^ | |
warning: use of deprecated associated function `pyo3::types::PyBytes::new_bound`: renamed to `PyBytes::new` | |
--> src/rust/src/x509/certificate.rs:401:39 | |
| | |
401 | pyo3::types::PyBytes::new_bound(py, p.contents()).unbind(), | |
| ^^^^^^^^^ | |
warning: use of deprecated associated function `pyo3::PyErr::warn_bound`: renamed to `PyErr::warn` | |
--> src/rust/src/x509/certificate.rs:447:22 | |
| | |
447 | pyo3::PyErr::warn_bound( | |
| ^^^^^^^^^^ | |
warning: use of deprecated associated function `pyo3::PyErr::warn_bound`: renamed to `PyErr::warn` | |
--> src/rust/src/x509/certificate.rs:473:26 | |
| | |
473 | pyo3::PyErr::warn_bound( | |
| ^^^^^^^^^^ | |
warning: use of deprecated associated function `pyo3::types::PyString::new_bound`: renamed to `PyString::new` | |
--> src/rust/src/x509/certificate.rs:491:39 | |
| | |
491 | Ok(pyo3::types::PyString::new_bound(py, o.as_str()).to_object(py)) | |
| ^^^^^^^^^ | |
warning: use of deprecated method `pyo3::ToPyObject::to_object`: `ToPyObject` is going to be replaced by `IntoPyObject`. See the migration guide (https://pyo3.rs/v0.23/migration) for more information. | |
--> src/rust/src/x509/certificate.rs:491:65 | |
| | |
491 | Ok(pyo3::types::PyString::new_bound(py, o.as_str()).to_object(py)) | |
| ^^^^^^^^^ | |
warning: use of deprecated associated function `pyo3::types::PyString::new_bound`: renamed to `PyString::new` | |
--> src/rust/src/x509/certificate.rs:494:39 | |
| | |
494 | Ok(pyo3::types::PyString::new_bound(py, o.as_str()).to_object(py)) | |
| ^^^^^^^^^ | |
warning: use of deprecated method `pyo3::ToPyObject::to_object`: `ToPyObject` is going to be replaced by `IntoPyObject`. See the migration guide (https://pyo3.rs/v0.23/migration) for more information. | |
--> src/rust/src/x509/certificate.rs:494:65 | |
| | |
494 | Ok(pyo3::types::PyString::new_bound(py, o.as_str()).to_object(py)) | |
| ^^^^^^^^^ | |
warning: use of deprecated associated function `pyo3::PyErr::warn_bound`: renamed to `PyErr::warn` | |
--> src/rust/src/x509/certificate.rs:499:30 | |
| | |
499 | pyo3::PyErr::warn_bound( | |
| ^^^^^^^^^^ | |
warning: use of deprecated associated function `pyo3::types::PyString::new_bound`: renamed to `PyString::new` | |
--> src/rust/src/x509/certificate.rs:506:39 | |
| | |
506 | Ok(pyo3::types::PyString::new_bound(py, o.as_str()).to_object(py)) | |
| ^^^^^^^^^ | |
warning: use of deprecated method `pyo3::ToPyObject::to_object`: `ToPyObject` is going to be replaced by `IntoPyObject`. See the migration guide (https://pyo3.rs/v0.23/migration) for more information. | |
--> src/rust/src/x509/certificate.rs:506:65 | |
| | |
506 | Ok(pyo3::types::PyString::new_bound(py, o.as_str()).to_object(py)) | |
| ^^^^^^^^^ | |
warning: use of deprecated associated function `pyo3::types::PyBytes::new_bound`: renamed to `PyBytes::new` | |
--> src/rust/src/x509/certificate.rs:509:50 | |
| | |
509 | let py_bytes = pyo3::types::PyBytes::new_bound(py, o.as_utf16_be_bytes()); | |
| ^^^^^^^^^ | |
warning: use of deprecated method `pyo3::ToPyObject::to_object`: `ToPyObject` is going to be replaced by `IntoPyObject`. See the migration guide (https://pyo3.rs/v0.23/migration) for more information. | |
--> src/rust/src/x509/certificate.rs:516:18 | |
| | |
516 | .to_object(py)) | |
| ^^^^^^^^^ | |
warning: use of deprecated associated function `pyo3::types::PyList::empty_bound`: renamed to `PyList::empty` | |
--> src/rust/src/x509/certificate.rs:532:48 | |
| | |
532 | let numbers = pyo3::types::PyList::empty_bound(py); | |
| ^^^^^^^^^^^ | |
warning: use of deprecated method `pyo3::ToPyObject::to_object`: `ToPyObject` is going to be replaced by `IntoPyObject`. See the migration guide (https://pyo3.rs/v0.23/migration) for more information. | |
--> src/rust/src/x509/certificate.rs:539:18 | |
| | |
539 | .to_object(py) | |
| ^^^^^^^^^ | |
warning: use of deprecated method `pyo3::ToPyObject::to_object`: `ToPyObject` is going to be replaced by `IntoPyObject`. See the migration guide (https://pyo3.rs/v0.23/migration) for more information. | |
--> src/rust/src/x509/certificate.rs:543:53 | |
| | |
543 | Ok(types::USER_NOTICE.get(py)?.call1((nr, et))?.to_object(py)) | |
| ^^^^^^^^^ | |
warning: use of deprecated associated function `pyo3::types::PyList::empty_bound`: renamed to `PyList::empty` | |
--> src/rust/src/x509/certificate.rs:550:38 | |
| | |
550 | let py_pq = pyo3::types::PyList::empty_bound(py); | |
| ^^^^^^^^^^^ | |
warning: use of deprecated associated function `pyo3::types::PyString::new_bound`: renamed to `PyString::new` | |
--> src/rust/src/x509/certificate.rs:555:44 | |
| | |
555 | pyo3::types::PyString::new_bound(py, data.as_str()).to_object(py) | |
| ^^^^^^^^^ | |
warning: use of deprecated method `pyo3::ToPyObject::to_object`: `ToPyObject` is going to be replaced by `IntoPyObject`. See the migration guide (https://pyo3.rs/v0.23/migration) for more information. | |
--> src/rust/src/x509/certificate.rs:555:73 | |
| | |
555 | pyo3::types::PyString::new_bound(py, data.as_str()).to_object(py) | |
| ^^^^^^^^^ | |
warning: use of deprecated method `pyo3::ToPyObject::to_object`: `ToPyObject` is going to be replaced by `IntoPyObject`. See the migration guide (https://pyo3.rs/v0.23/migration) for more information. | |
--> src/rust/src/x509/certificate.rs:577:14 | |
| | |
577 | Ok(py_pq.to_object(py)) | |
| ^^^^^^^^^ | |
warning: use of deprecated associated function `pyo3::types::PyList::empty_bound`: renamed to `PyList::empty` | |
--> src/rust/src/x509/certificate.rs:585:53 | |
| | |
585 | let certificate_policies = pyo3::types::PyList::empty_bound(py); | |
| ^^^^^^^^^^^ | |
warning: use of deprecated method `pyo3::ToPyObject::to_object`: `ToPyObject` is going to be replaced by `IntoPyObject`. See the migration guide (https://pyo3.rs/v0.23/migration) for more information. | |
--> src/rust/src/x509/certificate.rs:599:29 | |
| | |
599 | Ok(certificate_policies.to_object(py)) | |
| ^^^^^^^^^ | |
warning: use of deprecated associated function `pyo3::types::PyList::empty_bound`: renamed to `PyList::empty` | |
--> src/rust/src/x509/certificate.rs:606:36 | |
| | |
606 | let gns = pyo3::types::PyList::empty_bound(py); | |
| ^^^^^^^^^^^ | |
warning: use of deprecated method `pyo3::ToPyObject::to_object`: `ToPyObject` is going to be replaced by `IntoPyObject`. See the migration guide (https://pyo3.rs/v0.23/migration) for more information. | |
--> src/rust/src/x509/certificate.rs:610:12 | |
| | |
610 | Ok(gns.to_object(py)) | |
| ^^^^^^^^^ | |
warning: use of deprecated method `pyo3::ToPyObject::to_object`: `ToPyObject` is going to be replaced by `IntoPyObject`. See the migration guide (https://pyo3.rs/v0.23/migration) for more information. | |
--> src/rust/src/x509/certificate.rs:645:10 | |
| | |
645 | .to_object(py)) | |
| ^^^^^^^^^ | |
warning: use of deprecated associated function `pyo3::types::PyList::empty_bound`: renamed to `PyList::empty` | |
--> src/rust/src/x509/certificate.rs:653:39 | |
| | |
653 | let py_dps = pyo3::types::PyList::empty_bound(py); | |
| ^^^^^^^^^^^ | |
warning: use of deprecated method `pyo3::ToPyObject::to_object`: `ToPyObject` is going to be replaced by `IntoPyObject`. See the migration guide (https://pyo3.rs/v0.23/migration) for more information. | |
--> src/rust/src/x509/certificate.rs:658:15 | |
| | |
658 | Ok(py_dps.to_object(py)) | |
| ^^^^^^^^^ | |
warning: use of deprecated associated function `pyo3::types::PyFrozenSet::new_bound`: renamed to `PyFrozenSet::new` | |
--> src/rust/src/x509/certificate.rs:675:39 | |
| | |
675 | pyo3::types::PyFrozenSet::new_bound(py, &vec)?.to_object(py) | |
| ^^^^^^^^^ | |
warning: use of deprecated method `pyo3::ToPyObject::to_object`: `ToPyObject` is going to be replaced by `IntoPyObject`. See the migration guide (https://pyo3.rs/v0.23/migration) for more information. | |
--> src/rust/src/x509/certificate.rs:675:60 | |
| | |
675 | pyo3::types::PyFrozenSet::new_bound(py, &vec)?.to_object(py) | |
| ^^^^^^^^^ | |
warning: use of deprecated method `pyo3::types::PyAnyMethods::iter`: use `try_iter` instead | |
--> src/rust/src/x509/certificate.rs:688:33 | |
| | |
688 | for py_reason in py_reasons.iter()? { | |
| ^^^^ | |
warning: use of deprecated method `pyo3::ToPyObject::to_object`: `ToPyObject` is going to be replaced by `IntoPyObject`. See the migration guide (https://pyo3.rs/v0.23/migration) for more information. | |
--> src/rust/src/x509/certificate.rs:707:76 | |
| | |
707 | Some(biguint) => big_byte_slice_to_py_int(py, biguint.as_bytes())?.to_object(py), | |
| ^^^^^^^^^ | |
warning: use of deprecated associated function `pyo3::types::PyList::empty_bound`: renamed to `PyList::empty` | |
--> src/rust/src/x509/certificate.rs:723:36 | |
| | |
723 | let ads = pyo3::types::PyList::empty_bound(py); | |
| ^^^^^^^^^^^ | |
warning: use of deprecated method `pyo3::ToPyObject::to_object`: `ToPyObject` is going to be replaced by `IntoPyObject`. See the migration guide (https://pyo3.rs/v0.23/migration) for more information. | |
--> src/rust/src/x509/certificate.rs:726:64 | |
| | |
726 | let py_oid = oid_to_py_oid(py, &access.access_method)?.to_object(py); | |
| ^^^^^^^^^ | |
warning: use of deprecated method `pyo3::ToPyObject::to_object`: `ToPyObject` is going to be replaced by `IntoPyObject`. See the migration guide (https://pyo3.rs/v0.23/migration) for more information. | |
--> src/rust/src/x509/certificate.rs:731:12 | |
| | |
731 | Ok(ads.to_object(py)) | |
| ^^^^^^^^^ | |
warning: use of deprecated associated function `pyo3::types::PyString::new_bound`: renamed to `PyString::new` | |
--> src/rust/src/x509/certificate.rs:743:46 | |
| | |
743 | Some(data) => pyo3::types::PyString::new_bound(py, data.as_str()).into_any(), | |
| ^^^^^^^^^ | |
warning: use of deprecated associated function `pyo3::types::PyList::empty_bound`: renamed to `PyList::empty` | |
--> src/rust/src/x509/certificate.rs:760:41 | |
| | |
760 | let py_infos = pyo3::types::PyList::empty_bound(py); | |
| ^^^^^^^^^^^ | |
warning: use of deprecated associated function `pyo3::types::PyList::empty_bound`: renamed to `PyList::empty` | |
--> src/rust/src/x509/certificate.rs:766:56 | |
| | |
766 | let py_profession_items = pyo3::types::PyList::empty_bound(py); | |
| ^^^^^^^^^^^ | |
warning: use of deprecated associated function `pyo3::types::PyList::empty_bound`: renamed to `PyList::empty` | |
--> src/rust/src/x509/certificate.rs:773:52 | |
| | |
773 | let py_oids = pyo3::types::PyList::empty_bound(py); | |
| ^^^^^^^^^^^ | |
warning: use of deprecated associated function `pyo3::types::PyString::new_bound`: renamed to `PyString::new` | |
--> src/rust/src/x509/certificate.rs:783:50 | |
| | |
783 | Some(data) => pyo3::types::PyString::new_bound(py, data.as_str()).into_any(), | |
| ^^^^^^^^^ | |
warning: use of deprecated associated function `pyo3::types::PyBytes::new_bound`: renamed to `PyBytes::new` | |
--> src/rust/src/x509/certificate.rs:787:49 | |
| | |
787 | Some(data) => pyo3::types::PyBytes::new_bound(py, data).into_any(), | |
| ^^^^^^^^^ | |
warning: use of deprecated associated function `pyo3::types::PyList::empty_bound`: renamed to `PyList::empty` | |
--> src/rust/src/x509/certificate.rs:806:46 | |
| | |
806 | let py_admissions = pyo3::types::PyList::empty_bound(py); | |
| ^^^^^^^^^^^ | |
warning: use of deprecated associated function `pyo3::types::PyList::empty_bound`: renamed to `PyList::empty` | |
--> src/rust/src/x509/certificate.rs:854:49 | |
| | |
854 | let features = pyo3::types::PyList::empty_bound(py); | |
| ^^^^^^^^^^^ | |
warning: use of deprecated associated function `pyo3::types::PyList::empty_bound`: renamed to `PyList::empty` | |
--> src/rust/src/x509/certificate.rs:870:45 | |
| | |
870 | let ekus = pyo3::types::PyList::empty_bound(py); | |
| ^^^^^^^^^^^ | |
warning: use of deprecated associated function `pyo3::types::PyBytes::new_bound`: renamed to `PyBytes::new` | |
--> src/rust/src/x509/certificate.rs:1080:31 | |
| | |
1080 | pyo3::types::PyBytes::new_bound(py, &data).unbind(), | |
| ^^^^^^^^^ | |
warning: use of deprecated method `pyo3::types::PyAnyMethods::iter`: use `try_iter` instead | |
--> src/rust/src/x509/common.rs:41:63 | |
| | |
41 | for py_rdn in py_name.getattr(pyo3::intern!(py, "rdns"))?.iter()? { | |
| ^^^^ | |
warning: use of deprecated method `pyo3::types::PyAnyMethods::iter`: use `try_iter` instead | |
--> src/rust/src/x509/common.rs:45:31 | |
| | |
45 | for py_attr in py_rdn.iter()? { | |
| ^^^^ | |
warning: use of deprecated associated function `pyo3::types::PyBytes::new_bound`: renamed to `PyBytes::new` | |
--> src/rust/src/x509/common.rs:99:30 | |
| | |
99 | Ok(pyo3::types::PyBytes::new_bound(py, &result)) | |
| ^^^^^^^^^ | |
warning: use of deprecated method `pyo3::types::PyAnyMethods::iter`: use `try_iter` instead | |
--> src/rust/src/x509/common.rs:109:22 | |
| | |
109 | for el in py_gns.iter()? { | |
| ^^^^ | |
warning: use of deprecated method `pyo3::types::PyAnyMethods::iter`: use `try_iter` instead | |
--> src/rust/src/x509/common.rs:171:25 | |
| | |
171 | for py_ad in py_ads.iter()? { | |
| ^^^^ | |
warning: use of deprecated associated function `pyo3::types::PyList::empty_bound`: renamed to `PyList::empty` | |
--> src/rust/src/x509/common.rs:189:40 | |
| | |
189 | let py_rdns = pyo3::types::PyList::empty_bound(py); | |
| ^^^^^^^^^^^ | |
warning: use of deprecated associated function `pyo3::types::PyBytes::new_bound`: renamed to `PyBytes::new` | |
--> src/rust/src/x509/common.rs:210:42 | |
| | |
210 | Some(3) => pyo3::types::PyBytes::new_bound(py, attribute.value.data()).into_any(), | |
| ^^^^^^^^^ | |
warning: use of deprecated associated function `pyo3::types::PyBytes::new_bound`: renamed to `PyBytes::new` | |
--> src/rust/src/x509/common.rs:213:50 | |
| | |
213 | let py_bytes = pyo3::types::PyBytes::new_bound(py, attribute.value.data()); | |
| ^^^^^^^^^ | |
warning: use of deprecated associated function `pyo3::types::PyBytes::new_bound`: renamed to `PyBytes::new` | |
--> src/rust/src/x509/common.rs:218:50 | |
| | |
218 | let py_bytes = pyo3::types::PyBytes::new_bound(py, attribute.value.data()); | |
| ^^^^^^^^^ | |
warning: use of deprecated associated function `pyo3::types::PyString::new_bound`: renamed to `PyString::new` | |
--> src/rust/src/x509/common.rs:224:36 | |
| | |
224 | pyo3::types::PyString::new_bound(py, parsed).into_any() | |
| ^^^^^^^^^ | |
warning: use of deprecated method `pyo3::types::IntoPyDict::into_py_dict_bound`: renamed to `IntoPyDict::into_py_dict` | |
--> src/rust/src/x509/common.rs:227:60 | |
| | |
227 | let kwargs = [(pyo3::intern!(py, "_validate"), false)].into_py_dict_bound(py); | |
| ^^^^^^^^^^^^^^^^^^ | |
warning: use of deprecated method `pyo3::ToPyObject::to_object`: `ToPyObject` is going to be replaced by `IntoPyObject`. See the migration guide (https://pyo3.rs/v0.23/migration) for more information. | |
--> src/rust/src/x509/common.rs:231:10 | |
| | |
231 | .to_object(py)) | |
| ^^^^^^^^^ | |
warning: use of deprecated associated function `pyo3::types::PyList::empty_bound`: renamed to `PyList::empty` | |
--> src/rust/src/x509/common.rs:238:41 | |
| | |
238 | let py_attrs = pyo3::types::PyList::empty_bound(py); | |
| ^^^^^^^^^^^ | |
warning: use of deprecated method `pyo3::ToPyObject::to_object`: `ToPyObject` is going to be replaced by `IntoPyObject`. See the migration guide (https://pyo3.rs/v0.23/migration) for more information. | |
--> src/rust/src/x509/common.rs:246:10 | |
| | |
246 | .to_object(py)) | |
| ^^^^^^^^^ | |
warning: use of deprecated method `pyo3::ToPyObject::to_object`: `ToPyObject` is going to be replaced by `IntoPyObject`. See the migration guide (https://pyo3.rs/v0.23/migration) for more information. | |
--> src/rust/src/x509/common.rs:259:18 | |
| | |
259 | .to_object(py) | |
| ^^^^^^^^^ | |
warning: use of deprecated method `pyo3::ToPyObject::to_object`: `ToPyObject` is going to be replaced by `IntoPyObject`. See the migration guide (https://pyo3.rs/v0.23/migration) for more information. | |
--> src/rust/src/x509/common.rs:264:14 | |
| | |
264 | .to_object(py), | |
| ^^^^^^^^^ | |
warning: use of deprecated method `pyo3::ToPyObject::to_object`: `ToPyObject` is going to be replaced by `IntoPyObject`. See the migration guide (https://pyo3.rs/v0.23/migration) for more information. | |
--> src/rust/src/x509/common.rs:268:14 | |
| | |
268 | .to_object(py), | |
| ^^^^^^^^^ | |
warning: use of deprecated method `pyo3::ToPyObject::to_object`: `ToPyObject` is going to be replaced by `IntoPyObject`. See the migration guide (https://pyo3.rs/v0.23/migration) for more information. | |
--> src/rust/src/x509/common.rs:274:18 | |
| | |
274 | .to_object(py) | |
| ^^^^^^^^^ | |
warning: use of deprecated method `pyo3::ToPyObject::to_object`: `ToPyObject` is going to be replaced by `IntoPyObject`. See the migration guide (https://pyo3.rs/v0.23/migration) for more information. | |
--> src/rust/src/x509/common.rs:279:14 | |
| | |
279 | .to_object(py), | |
| ^^^^^^^^^ | |
warning: use of deprecated method `pyo3::ToPyObject::to_object`: `ToPyObject` is going to be replaced by `IntoPyObject`. See the migration guide (https://pyo3.rs/v0.23/migration) for more information. | |
--> src/rust/src/x509/common.rs:283:60 | |
| | |
283 | types::IP_ADDRESS.get(py)?.call1((addr,))?.to_object(py) | |
| ^^^^^^^^^ | |
warning: use of deprecated method `pyo3::ToPyObject::to_object`: `ToPyObject` is going to be replaced by `IntoPyObject`. See the migration guide (https://pyo3.rs/v0.23/migration) for more information. | |
--> src/rust/src/x509/common.rs:292:58 | |
| | |
292 | types::REGISTERED_ID.get(py)?.call1((oid,))?.to_object(py) | |
| ^^^^^^^^^ | |
warning: use of deprecated associated function `pyo3::types::PyList::empty_bound`: renamed to `PyList::empty` | |
--> src/rust/src/x509/common.rs:309:36 | |
| | |
309 | let gns = pyo3::types::PyList::empty_bound(py); | |
| ^^^^^^^^^^^ | |
warning: use of deprecated method `pyo3::ToPyObject::to_object`: `ToPyObject` is going to be replaced by `IntoPyObject`. See the migration guide (https://pyo3.rs/v0.23/migration) for more information. | |
--> src/rust/src/x509/common.rs:314:12 | |
| | |
314 | Ok(gns.to_object(py)) | |
| ^^^^^^^^^ | |
warning: use of deprecated associated function `pyo3::types::PyBytes::new_bound`: renamed to `PyBytes::new` | |
--> src/rust/src/x509/common.rs:336:39 | |
| | |
336 | .call1((pyo3::types::PyBytes::new_bound(py, &data[..data.len() / 2]),))?; | |
| ^^^^^^^^^ | |
warning: use of deprecated method `pyo3::ToPyObject::to_object`: `ToPyObject` is going to be replaced by `IntoPyObject`. See the migration guide (https://pyo3.rs/v0.23/migration) for more information. | |
--> src/rust/src/x509/common.rs:344:51 | |
| | |
344 | Ok(types::IP_ADDRESS.get(py)?.call1((addr,))?.to_object(py)) | |
| ^^^^^^^^^ | |
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/rust/src/x509/common.rs:382:33 | |
| | |
382 | oid_obj.into_py(py), | |
| ^^^^^^^ | |
warning: use of deprecated associated function `pyo3::types::PyList::empty_bound`: renamed to `PyList::empty` | |
--> src/rust/src/x509/common.rs:387:45 | |
| | |
387 | let exts = pyo3::types::PyList::empty_bound(py); | |
| ^^^^^^^^^^^ | |
warning: use of deprecated method `pyo3::ToPyObject::to_object`: `ToPyObject` is going to be replaced by `IntoPyObject`. See the migration guide (https://pyo3.rs/v0.23/migration) for more information. | |
--> src/rust/src/x509/common.rs:403:59 | |
| | |
403 | Ok(types::EXTENSIONS.get(py)?.call1((exts,))?.to_object(py)) | |
| ^^^^^^^^^ | |
warning: use of deprecated method `pyo3::types::PyAnyMethods::iter`: use `try_iter` instead | |
--> src/rust/src/x509/common.rs:423:27 | |
| | |
423 | for py_ext in py_exts.iter()? { | |
| ^^^^ | |
warning: use of deprecated associated function `pyo3::types::PyBytes::new_bound`: renamed to `PyBytes::new` | |
--> src/rust/src/x509/common.rs:469:45 | |
| | |
469 | let py_data = pyo3::types::PyBytes::new_bound(py, &data); | |
| ^^^^^^^^^ | |
warning: use of deprecated associated function `pyo3::types::PyBytes::new_bound`: renamed to `PyBytes::new` | |
--> src/rust/src/x509/crl.rs:73:31 | |
| | |
73 | pyo3::types::PyBytes::new_bound(py, block.contents()).unbind(), | |
| ^^^^^^^^^ | |
warning: use of deprecated associated function `pyo3::types::PyList::empty_bound`: renamed to `PyList::empty` | |
--> src/rust/src/x509/crl.rs:159:47 | |
| | |
159 | let result = pyo3::types::PyList::empty_bound(py); | |
| ^^^^^^^^^^^ | |
warning: use of deprecated method `pyo3::ToPyObject::to_object`: `ToPyObject` is going to be replaced by `IntoPyObject`. See the migration guide (https://pyo3.rs/v0.23/migration) for more information. | |
--> src/rust/src/x509/crl.rs:164:23 | |
| | |
164 | Ok(result.to_object(py)) | |
| ^^^^^^^^^ | |
warning: use of deprecated method `pyo3::ToPyObject::to_object`: `ToPyObject` is going to be replaced by `IntoPyObject`. See the migration guide (https://pyo3.rs/v0.23/migration) for more information. | |
--> src/rust/src/x509/crl.rs:173:75 | |
| | |
173 | Ok(pyo3::Bound::new(py, self.revoked_cert(py, idx as usize))?.to_object(py)) | |
| ^^^^^^^^^ | |
warning: use of deprecated associated function `pyo3::types::PyBytes::new_bound`: renamed to `PyBytes::new` | |
--> src/rust/src/x509/crl.rs:234:34 | |
| | |
234 | Ok(pyo3::types::PyBytes::new_bound(py, &b)) | |
| ^^^^^^^^^ | |
warning: use of deprecated associated function `pyo3::PyErr::warn_bound`: renamed to `PyErr::warn` | |
--> src/rust/src/x509/crl.rs:265:22 | |
| | |
265 | pyo3::PyErr::warn_bound( | |
| ^^^^^^^^^^ | |
warning: use of deprecated associated function `pyo3::PyErr::warn_bound`: renamed to `PyErr::warn` | |
--> src/rust/src/x509/crl.rs:294:22 | |
| | |
294 | pyo3::PyErr::warn_bound( | |
| ^^^^^^^^^^ | |
warning: use of deprecated associated function `pyo3::PyErr::warn_bound`: renamed to `PyErr::warn` | |
--> src/rust/src/x509/crl.rs:562:22 | |
| | |
562 | pyo3::PyErr::warn_bound( | |
| ^^^^^^^^^^ | |
warning: use of deprecated method `pyo3::types::PyAnyMethods::iter`: use `try_iter` instead | |
--> src/rust/src/x509/crl.rs:664:10 | |
| | |
664 | .iter()? | |
| ^^^^ | |
warning: use of deprecated associated function `pyo3::types::PyBytes::new_bound`: renamed to `PyBytes::new` | |
--> src/rust/src/x509/crl.rs:728:31 | |
| | |
728 | pyo3::types::PyBytes::new_bound(py, &data).unbind(), | |
| ^^^^^^^^^ | |
warning: use of deprecated associated function `pyo3::types::PyBytes::new_bound`: renamed to `PyBytes::new` | |
--> src/rust/src/x509/csr.rs:83:34 | |
| | |
83 | Ok(pyo3::types::PyBytes::new_bound(py, &result)) | |
| ^^^^^^^^^ | |
warning: use of deprecated associated function `pyo3::types::PyBytes::new_bound`: renamed to `PyBytes::new` | |
--> src/rust/src/x509/csr.rs:88:31 | |
| | |
88 | pyo3::types::PyBytes::new_bound(py, self.raw.borrow_dependent().signature.as_bytes()) | |
| ^^^^^^^^^ | |
warning: use of deprecated associated function `pyo3::PyErr::warn_bound`: renamed to `PyErr::warn` | |
--> src/rust/src/x509/csr.rs:135:22 | |
| | |
135 | pyo3::PyErr::warn_bound(py, &warning_cls, warning_msg, 1)?; | |
| ^^^^^^^^^^ | |
warning: use of deprecated associated function `pyo3::types::PyBytes::new_bound`: renamed to `PyBytes::new` | |
--> src/rust/src/x509/csr.rs:158:53 | |
| | |
158 | return Ok(pyo3::types::PyBytes::new_bound(py, val.data()).into_any()); | |
| ^^^^^^^^^ | |
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/rust/src/x509/csr.rs:169:17 | |
| | |
169 | oid.into_py(py), | |
| ^^^^^^^ | |
warning: use of deprecated associated function `pyo3::types::PyList::empty_bound`: renamed to `PyList::empty` | |
--> src/rust/src/x509/csr.rs:175:44 | |
| | |
175 | let pyattrs = pyo3::types::PyList::empty_bound(py); | |
| ^^^^^^^^^^^ | |
warning: use of deprecated associated function `pyo3::types::PyBytes::new_bound`: renamed to `PyBytes::new` | |
--> src/rust/src/x509/csr.rs:191:52 | |
| | |
191 | let serialized = pyo3::types::PyBytes::new_bound(py, val.data()); | |
| ^^^^^^^^^ | |
warning: use of deprecated associated function `pyo3::types::PyBytes::new_bound`: renamed to `PyBytes::new` | |
--> src/rust/src/x509/csr.rs:256:31 | |
| | |
256 | pyo3::types::PyBytes::new_bound(py, parsed.contents()).unbind(), | |
| ^^^^^^^^^ | |
warning: use of deprecated method `pyo3::types::PyAnyMethods::iter`: use `try_iter` instead | |
--> src/rust/src/x509/csr.rs:332:71 | |
| | |
332 | for py_attr in builder.getattr(pyo3::intern!(py, "_attributes"))?.iter()? { | |
| ^^^^ | |
warning: use of deprecated associated function `pyo3::types::PyBytes::new_bound`: renamed to `PyBytes::new` | |
--> src/rust/src/x509/csr.rs:390:31 | |
| | |
390 | pyo3::types::PyBytes::new_bound(py, &data).clone().unbind(), | |
| ^^^^^^^^^ | |
warning: use of deprecated method `pyo3::types::PyAnyMethods::iter`: use `try_iter` instead | |
--> src/rust/src/x509/extensions.rs:24:30 | |
| | |
24 | for name in subtrees.iter()? { | |
| ^^^^ | |
warning: use of deprecated method `pyo3::types::PyAnyMethods::iter`: use `try_iter` instead | |
--> src/rust/src/x509/extensions.rs:91:25 | |
| | |
91 | for py_dp in py_dps.iter()? { | |
| ^^^^ | |
warning: use of deprecated method `pyo3::types::PyAnyMethods::iter`: use `try_iter` instead | |
--> src/rust/src/x509/extensions.rs:109:51 | |
| | |
109 | for py_name_entry in py_relative_name.iter()? { | |
| ^^^^ | |
warning: use of deprecated method `pyo3::types::PyAnyMethods::iter`: use `try_iter` instead | |
--> src/rust/src/x509/extensions.rs:231:31 | |
| | |
231 | for py_policy_info in ext.iter()? { | |
| ^^^^ | |
warning: use of deprecated method `pyo3::types::PyAnyMethods::iter`: use `try_iter` instead | |
--> src/rust/src/x509/extensions.rs:237:54 | |
| | |
237 | for py_qualifier in py_policy_qualifiers.iter()? { | |
| ^^^^ | |
warning: use of deprecated method `pyo3::types::PyAnyMethods::iter`: use `try_iter` instead | |
--> src/rust/src/x509/extensions.rs:260:30 | |
| | |
260 | ... .iter()? | |
| ^^^^ | |
warning: use of deprecated method `pyo3::types::PyAnyMethods::iter`: use `try_iter` instead | |
--> src/rust/src/x509/extensions.rs:349:79 | |
| | |
349 | for py_name_entry in ext.getattr(pyo3::intern!(py, "relative_name"))?.iter()? { | |
| ^^^^ | |
warning: use of deprecated method `pyo3::types::PyAnyMethods::iter`: use `try_iter` instead | |
--> src/rust/src/x509/extensions.rs:379:19 | |
| | |
379 | for el in ext.iter()? { | |
| ^^^^ | |
warning: use of deprecated method `pyo3::types::PyAnyMethods::iter`: use `try_iter` instead | |
--> src/rust/src/x509/extensions.rs:395:19 | |
| | |
395 | for el in ext.iter()? { | |
| ^^^^ | |
warning: use of deprecated method `pyo3::types::PyAnyMethods::iter`: use `try_iter` instead | |
--> src/rust/src/x509/extensions.rs:404:20 | |
| | |
404 | for sct in ext.iter()? { | |
| ^^^^ | |
warning: use of deprecated method `pyo3::types::PyAnyMethods::iter`: use `try_iter` instead | |
--> src/rust/src/x509/extensions.rs:411:20 | |
| | |
411 | for sct in ext.iter()? { | |
| ^^^^ | |
warning: use of deprecated method `pyo3::types::PyAnyMethods::iter`: use `try_iter` instead | |
--> src/rust/src/x509/extensions.rs:470:29 | |
| | |
470 | for py_item in py_items.iter()? { | |
| ^^^^ | |
warning: use of deprecated method `pyo3::types::PyAnyMethods::iter`: use `try_iter` instead | |
--> src/rust/src/x509/extensions.rs:481:31 | |
| | |
481 | for py_oid in py_oids.iter()? { | |
| ^^^^ | |
warning: use of deprecated method `pyo3::types::PyAnyMethods::iter`: use `try_iter` instead | |
--> src/rust/src/x509/extensions.rs:550:40 | |
| | |
550 | for py_info in py_profession_infos.iter()? { | |
| ^^^^ | |
warning: use of deprecated method `pyo3::types::PyAnyMethods::iter`: use `try_iter` instead | |
--> src/rust/src/x509/extensions.rs:724:37 | |
| | |
724 | for py_admission in ext.iter()? { | |
| ^^^^ | |
warning: use of deprecated associated function `pyo3::types::PyList::empty_bound`: renamed to `PyList::empty` | |
--> src/rust/src/x509/ocsp_req.rs:135:60 | |
| | |
135 | let py_oids = pyo3::types::PyList::empty_bound(py); | |
| ^^^^^^^^^^^ | |
warning: use of deprecated associated function `pyo3::types::PyBytes::new_bound`: renamed to `PyBytes::new` | |
--> src/rust/src/x509/ocsp_req.rs:164:34 | |
| | |
164 | Ok(pyo3::types::PyBytes::new_bound(py, &result)) | |
| ^^^^^^^^^ | |
warning: use of deprecated associated function `pyo3::types::PyBytes::new_bound`: renamed to `PyBytes::new` | |
--> src/rust/src/x509/ocsp_req.rs:229:53 | |
| | |
229 | load_der_ocsp_request(py, pyo3::types::PyBytes::new_bound(py, &data).unbind()) | |
| ^^^^^^^^^ | |
warning: use of deprecated associated function `pyo3::types::PyBytes::new_bound`: renamed to `PyBytes::new` | |
--> src/rust/src/x509/ocsp_resp.rs:171:42 | |
| | |
171 | Ok(pyo3::types::PyBytes::new_bound(py, key_hash).into_any()) | |
| ^^^^^^^^^ | |
warning: use of deprecated associated function `pyo3::PyErr::warn_bound`: renamed to `PyErr::warn` | |
--> src/rust/src/x509/ocsp_resp.rs:183:22 | |
| | |
183 | pyo3::PyErr::warn_bound( | |
| ^^^^^^^^^^ | |
warning: use of deprecated associated function `pyo3::types::PyBytes::new_bound`: renamed to `PyBytes::new` | |
--> src/rust/src/x509/ocsp_resp.rs:241:34 | |
| | |
241 | Ok(pyo3::types::PyBytes::new_bound( | |
| ^^^^^^^^^ | |
warning: use of deprecated associated function `pyo3::types::PyBytes::new_bound`: renamed to `PyBytes::new` | |
--> src/rust/src/x509/ocsp_resp.rs:254:34 | |
| | |
254 | Ok(pyo3::types::PyBytes::new_bound(py, &result)) | |
| ^^^^^^^^^ | |
warning: use of deprecated associated function `pyo3::types::PyList::empty_bound`: renamed to `PyList::empty` | |
--> src/rust/src/x509/ocsp_resp.rs:263:45 | |
| | |
263 | let py_certs = pyo3::types::PyList::empty_bound(py); | |
| ^^^^^^^^^^^ | |
warning: use of deprecated associated function `pyo3::PyErr::warn_bound`: renamed to `PyErr::warn` | |
--> src/rust/src/x509/ocsp_resp.rs:345:22 | |
| | |
345 | pyo3::PyErr::warn_bound( | |
| ^^^^^^^^^^ | |
warning: use of deprecated associated function `pyo3::PyErr::warn_bound`: renamed to `PyErr::warn` | |
--> src/rust/src/x509/ocsp_resp.rs:382:22 | |
| | |
382 | pyo3::PyErr::warn_bound( | |
| ^^^^^^^^^^ | |
warning: use of deprecated associated function `pyo3::PyErr::warn_bound`: renamed to `PyErr::warn` | |
--> src/rust/src/x509/ocsp_resp.rs:409:22 | |
| | |
409 | pyo3::PyErr::warn_bound( | |
| ^^^^^^^^^^ | |
warning: use of deprecated associated function `pyo3::types::PyBytes::new_bound`: renamed to `PyBytes::new` | |
--> src/rust/src/x509/ocsp_resp.rs:510:34 | |
| | |
510 | Ok(pyo3::types::PyBytes::new_bound(py, &result)) | |
| ^^^^^^^^^ | |
warning: use of deprecated associated function `pyo3::types::PyBytes::new_bound`: renamed to `PyBytes::new` | |
--> src/rust/src/x509/ocsp_resp.rs:711:65 | |
| | |
711 | return load_der_ocsp_response(py, pyo3::types::PyBytes::new_bound(py, &data).unbind()); | |
| ^^^^^^^^^ | |
warning: use of deprecated associated function `pyo3::types::PyBytes::new_bound`: renamed to `PyBytes::new` | |
--> src/rust/src/x509/ocsp_resp.rs:876:54 | |
| | |
876 | load_der_ocsp_response(py, pyo3::types::PyBytes::new_bound(py, &data).unbind()) | |
| ^^^^^^^^^ | |
warning: use of deprecated associated function `pyo3::PyErr::warn_bound`: renamed to `PyErr::warn` | |
--> src/rust/src/x509/ocsp_resp.rs:978:22 | |
| | |
978 | pyo3::PyErr::warn_bound( | |
| ^^^^^^^^^^ | |
warning: use of deprecated associated function `pyo3::PyErr::warn_bound`: renamed to `PyErr::warn` | |
--> src/rust/src/x509/ocsp_resp.rs:1012:22 | |
| | |
1012 | pyo3::PyErr::warn_bound( | |
| ^^^^^^^^^^ | |
warning: use of deprecated associated function `pyo3::PyErr::warn_bound`: renamed to `PyErr::warn` | |
--> src/rust/src/x509/ocsp_resp.rs:1037:22 | |
| | |
1037 | pyo3::PyErr::warn_bound( | |
| ^^^^^^^^^^ | |
warning: use of deprecated associated function `pyo3::types::PyDict::new_bound`: renamed to `PyDict::new` | |
--> src/rust/src/x509/sct.rs:170:43 | |
| | |
170 | let kwargs = pyo3::types::PyDict::new_bound(py); | |
| ^^^^^^^^^ | |
warning: use of deprecated associated function `pyo3::types::PyList::empty_bound`: renamed to `PyList::empty` | |
--> src/rust/src/x509/sct.rs:229:40 | |
| | |
229 | let py_scts = pyo3::types::PyList::empty_bound(py); | |
| ^^^^^^^^^^^ | |
warning: use of deprecated method `pyo3::ToPyObject::to_object`: `ToPyObject` is going to be replaced by `IntoPyObject`. See the migration guide (https://pyo3.rs/v0.23/migration) for more information. | |
--> src/rust/src/x509/sct.rs:259:16 | |
| | |
259 | Ok(py_scts.to_object(py)) | |
| ^^^^^^^^^ | |
warning: use of deprecated associated function `pyo3::types::PyList::empty_bound`: renamed to `PyList::empty` | |
--> src/rust/src/x509/verify.rs:301:45 | |
| | |
301 | let py_chain = pyo3::types::PyList::empty_bound(py); | |
| ^^^^^^^^^^^ | |
warning: use of deprecated associated function `pyo3::types::PyList::empty_bound`: renamed to `PyList::empty` | |
--> src/rust/src/x509/verify.rs:385:43 | |
| | |
385 | let result = pyo3::types::PyList::empty_bound(py); | |
| ^^^^^^^^^^^ | |
error[E0621]: explicit lifetime required in the type of `slf` | |
--> src/rust/src/oid.rs:35:9 | |
| | |
32 | slf: pyo3::PyRef<'_, Self>, | |
| --------------------- help: add explicit lifetime `'p` to the type of `slf`: `PyRef<'p, oid::ObjectIdentifier>` | |
... | |
35 | / types::OID_NAMES | |
36 | | .get(py)? | |
37 | | .call_method1(pyo3::intern!(py, "get"), (slf, "Unknown OID")) | |
| |_________________________________________________________________________^ lifetime `'p` required | |
error[E0621]: explicit lifetime required in the type of `ext` | |
--> src/rust/src/x509/certificate.rs:974:13 | |
| | |
830 | ext: &Extension<'_>, | |
| -------------- help: add explicit lifetime `'p` to the type of `ext`: `&Extension<'p>` | |
... | |
974 | / Ok(Some( | |
975 | | types::ADMISSIONS | |
976 | | .get(py)? | |
977 | | .call1((admission_authority, py_admissions))?, | |
978 | | )) | |
| |______________^ lifetime `'p` required | |
error[E0621]: explicit lifetime required in the type of `py` | |
--> src/rust/src/x509/extensions.rs:515:5 | |
| | |
457 | py: pyo3::Python<'_>, | |
| ---------------- help: add explicit lifetime `'a` to the type of `py`: `Python<'a>` | |
... | |
515 | / Ok(extensions::ProfessionInfo { | |
516 | | naming_authority, | |
517 | | profession_items, | |
518 | | profession_oids, | |
519 | | registration_number, | |
520 | | add_profession_info, | |
521 | | }) | |
| |______^ lifetime `'a` required | |
error[E0621]: explicit lifetime required in the type of `py` | |
--> src/rust/src/x509/extensions.rs:555:5 | |
| | |
525 | py: pyo3::Python<'_>, | |
| ---------------- help: add explicit lifetime `'a` to the type of `py`: `Python<'a>` | |
... | |
555 | / Ok(extensions::Admission { | |
556 | | admission_authority, | |
557 | | naming_authority, | |
558 | | profession_infos, | |
559 | | }) | |
| |______^ lifetime `'a` required | |
Some errors have detailed explanations: E0277, E0308, E0621. | |
For more information about an error, try `rustc --explain E0277`. | |
warning: `cryptography-rust` (lib test) generated 370 warnings (42 duplicates) | |
error: could not compile `cryptography-rust` (lib test) due to 50 previous errors; 370 warnings emitted |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment