Skip to content

Commit 2f9ece4

Browse files
magnusuMETdavidhewitt
authored andcommitted
Fix examples
1 parent e7ad817 commit 2f9ece4

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

examples/parallel/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ crate-type = ["cdylib"]
1111
[dependencies]
1212
pyo3 = { version = "0.21.0", features = ["extension-module", "multiple-pymethods"] }
1313
numpy = { path = "../.." }
14-
ndarray = { version = "0.15", features = ["rayon", "blas"] }
14+
ndarray = { version = "0.16", features = ["rayon", "blas"] }
1515
blas-src = { version = "0.8", features = ["openblas"] }
1616
openblas-src = { version = "0.10", features = ["cblas", "system"] }
1717

examples/simple/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ fn rust_ext<'py>(m: &Bound<'py, PyModule>) -> PyResult<()> {
107107
#[allow(deprecated)]
108108
Zip::from(x.as_array_mut())
109109
.and(y.as_array())
110-
.apply(|x, y| *x = (i64::from(*x) + 60 * i64::from(*y)).into());
110+
.for_each(|x, y| *x = (i64::from(*x) + 60 * i64::from(*y)).into());
111111
}
112112

113113
// This crate follows a strongly-typed approach to wrapping NumPy arrays

0 commit comments

Comments
 (0)