Skip to content

Commit 391efe2

Browse files
authored
Merge pull request #135 from edgarrmondragon/pyo3-0.25
Bump PyO3 to 0.25
2 parents 389ab4e + f8ad05f commit 391efe2

File tree

3 files changed

+47
-51
lines changed

3 files changed

+47
-51
lines changed

Cargo.lock

Lines changed: 45 additions & 43 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ rpds = "1.1.1"
1212
archery = "1.2.1"
1313

1414
[dependencies.pyo3]
15-
version = "0.24.2"
15+
version = "0.25.0"
1616
# To build extension for PyPy on Windows, "generate-import-lib" is needed:
1717
# https://github.com/PyO3/maturin-action/issues/267#issuecomment-2106844429
1818
features = ["extension-module", "generate-import-lib"]

src/lib.rs

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ use pyo3::exceptions::{PyIndexError, PyTypeError};
22
use pyo3::pyclass::CompareOp;
33
use pyo3::types::{PyDict, PyIterator, PyTuple, PyType};
44
use pyo3::{exceptions::PyKeyError, types::PyMapping, types::PyTupleMethods};
5-
use pyo3::{prelude::*, AsPyPointer, BoundObject, PyTypeInfo};
5+
use pyo3::{prelude::*, BoundObject, PyTypeInfo};
66
use rpds::{
77
HashTrieMap, HashTrieMapSync, HashTrieSet, HashTrieSetSync, List, ListSync, Queue, QueueSync,
88
};
@@ -67,12 +67,6 @@ impl Key {
6767
}
6868
}
6969

70-
unsafe impl AsPyPointer for Key {
71-
fn as_ptr(&self) -> *mut pyo3::ffi::PyObject {
72-
self.inner.as_ptr()
73-
}
74-
}
75-
7670
impl<'source> FromPyObject<'source> for Key {
7771
fn extract_bound(ob: &Bound<'source, PyAny>) -> PyResult<Self> {
7872
Ok(Key {

0 commit comments

Comments
 (0)