You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[package]
name = "scratch"version = "0.1.0"edition = "2021"
[dependencies]
jiter = { version = "0.5.0", features = ["python"] }
I get an error after running cargo build:
error[E0599]: the method `to_object` exists for reference `&BigInt`, but its trait bounds were not satisfied
--> /home/df/.cargo/registry/src/index.crates.io-6f17d22bba15001f/jiter-0.5.0/src/number_decoder.rs:121:62
|
121 | Self::Int(NumberInt::BigInt(big_int)) => big_int.to_object(py),
| ^^^^^^^^^ method cannot be called on `&BigInt` due to unsatisfied trait bounds
|
::: /home/df/.cargo/registry/src/index.crates.io-6f17d22bba15001f/num-bigint-0.4.6/src/bigint.rs:57:1
|
57 | pub struct BigInt {
| ----------------- doesn't satisfy `BigInt: pyo3::ToPyObject`
|
= note: the following trait bounds were not satisfied:
`BigInt: pyo3::ToPyObject`
which is required by `&BigInt: pyo3::ToPyObject`
error[E0599]: the method `to_object` exists for reference `&BigInt`, but its trait bounds were not satisfied
--> /home/df/.cargo/registry/src/index.crates.io-6f17d22bba15001f/jiter-0.5.0/src/value.rs:37:34
|
37 | Self::BigInt(b) => b.to_object(py),
| ^^^^^^^^^ method cannot be called on `&BigInt` due to unsatisfied trait bounds
|
::: /home/df/.cargo/registry/src/index.crates.io-6f17d22bba15001f/num-bigint-0.4.6/src/bigint.rs:57:1
|
57 | pub struct BigInt {
| ----------------- doesn't satisfy `BigInt: pyo3::ToPyObject`
|
= note: the following trait bounds were not satisfied:
`BigInt: pyo3::ToPyObject`
which is required by `&BigInt: pyo3::ToPyObject`
What am I doing wrong?
System information:
rustc 1.80.0
Ubuntu 22.04
The text was updated successfully, but these errors were encountered:
My Cargo.toml:
I get an error after running
cargo build
:What am I doing wrong?
System information:
The text was updated successfully, but these errors were encountered: