Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build(deps): bump pyo3 from 0.21.2 to 0.22.0 in the cargo group #69

Merged
merged 2 commits into from
Jul 1, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
64 changes: 32 additions & 32 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,9 @@ crate-type = ["cdylib"]
[dependencies]
age-core = "0.10"
age = { version = "0.10", features = ["ssh", "plugin"] }
pyo3 = { version = "0.21", features = [
pyo3 = { version = "0.22", features = [
"extension-module",
"abi3",
"abi3-py38",
"py-clone",
] }
4 changes: 2 additions & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ identity_traits!(ssh::Identity, x25519::Identity, plugin::IdentityPluginV1);
// `PyAny` into each concrete recipient type, which we then perform the trait
// cast on.
impl<'source> FromPyObject<'source> for Box<dyn PyrageRecipient> {
fn extract(ob: &'source PyAny) -> PyResult<Self> {
fn extract_bound(ob: &Bound<'source, PyAny>) -> PyResult<Self> {
if let Ok(recipient) = ob.extract::<x25519::Recipient>() {
Ok(Box::new(recipient) as Box<dyn PyrageRecipient>)
} else if let Ok(recipient) = ob.extract::<ssh::Recipient>() {
Expand All @@ -118,7 +118,7 @@ impl<'source> FromPyObject<'source> for Box<dyn PyrageRecipient> {
// Similar to the above: we try to turn the `PyAny` into a concrete identity type,
// which we then perform the trait cast on.
impl<'source> FromPyObject<'source> for Box<dyn PyrageIdentity> {
fn extract(ob: &'source PyAny) -> PyResult<Self> {
fn extract_bound(ob: &Bound<'source, PyAny>) -> PyResult<Self> {
if let Ok(identity) = ob.extract::<x25519::Identity>() {
Ok(Box::new(identity) as Box<dyn PyrageIdentity>)
} else if let Ok(identity) = ob.extract::<ssh::Identity>() {
Expand Down
Loading