Skip to content

Commit 4d29b80

Browse files
magnusuMETdavidhewitt
authored andcommitted
Allow deprecated ndarray function
1 parent 2f9ece4 commit 4d29b80

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ nalgebra = { version = "0.32", default-features = false, optional = true }
2121
num-complex = ">= 0.2, < 0.5"
2222
num-integer = "0.1"
2323
num-traits = "0.2"
24-
ndarray = "0.16"
24+
ndarray = ">= 0.13, < 0.17"
2525
pyo3 = { version = "0.21.0", default-features = false, features = ["macros"] }
2626
rustc-hash = "1.1"
2727

src/slice_container.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,8 @@ where
6969
D: Dimension,
7070
{
7171
fn from(data: ArrayBase<OwnedRepr<A>, D>) -> Self {
72-
Self::from(data.into_raw_vec_and_offset().0)
72+
#[allow(deprecated)]
73+
Self::from(data.into_raw_vec())
7374
}
7475
}
7576

0 commit comments

Comments
 (0)