Skip to content

Commit 5c58bde

Browse files
authored
Merge pull request #24 from Dr-Emann/push-mxoutoznqnzv
chore: update pyo3 version
2 parents b4e39fa + 99f92cd commit 5c58bde

File tree

3 files changed

+37
-28
lines changed

3 files changed

+37
-28
lines changed

Cargo.lock

Lines changed: 33 additions & 24 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
@@ -9,7 +9,7 @@ name = "rbloom"
99
crate-type = ["cdylib"]
1010

1111
[dependencies]
12-
pyo3 = { version = "0.26", features = [
12+
pyo3 = { version = "0.27", features = [
1313
"extension-module",
1414
"abi3-py37",
1515
] } # stable ABI with minimum Python version 3.7

src/lib.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ impl Bloom {
186186
continue;
187187
}
188188
// If the other object is a Bloom, use the bitwise union
189-
if let Ok(other) = other.downcast::<Bloom>() {
189+
if let Ok(other) = other.cast::<Bloom>() {
190190
let other = other.try_borrow()?;
191191
self_.__ior__(&other)?;
192192
}
@@ -214,7 +214,7 @@ impl Bloom {
214214
continue;
215215
}
216216
// If the other object is a Bloom, use the bitwise intersection
217-
if let Ok(other) = other.downcast::<Bloom>() {
217+
if let Ok(other) = other.cast::<Bloom>() {
218218
let other = other.try_borrow()?;
219219
self_.__iand__(&other)?;
220220
}
@@ -400,7 +400,7 @@ impl Bloom {
400400
other: &Bound<'_, PyAny>,
401401
f: impl FnOnce(&Bloom) -> PyResult<O>,
402402
) -> PyResult<O> {
403-
match other.downcast::<Bloom>() {
403+
match other.cast::<Bloom>() {
404404
Ok(o) => {
405405
let o = o.try_borrow()?;
406406
check_compatible(self, &o)?;

0 commit comments

Comments
 (0)