Skip to content

Commit

Permalink
Replace deprecated method call
Browse files Browse the repository at this point in the history
  • Loading branch information
magnusuMET committed Aug 15, 2024
1 parent c8ca609 commit 2cb96e6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ nalgebra = { version = "0.32", default-features = false, optional = true }
num-complex = ">= 0.2, < 0.5"
num-integer = "0.1"
num-traits = "0.2"
ndarray = ">= 0.13, < 0.17"
ndarray = "0.16"
pyo3 = { version = "0.21.0", default-features = false, features = ["macros"] }
rustc-hash = "1.1"

Expand Down
2 changes: 1 addition & 1 deletion src/slice_container.rs
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ where
D: Dimension,
{
fn from(data: ArrayBase<OwnedRepr<A>, D>) -> Self {
Self::from(data.into_raw_vec())
Self::from(data.into_raw_vec_and_offset().0)
}
}

Expand Down

0 comments on commit 2cb96e6

Please sign in to comment.