Closed nils-werner closed 1 year ago
Actually, the reason is that I have two different versions of ndarray
installed:
├── ndarray v0.15.6
└── sndfile v0.1.1
└── ndarray v0.13.1
I had to restrict the outer ndarray
to a version compatible to 0.13
, so that cargo could match the two:
cargo add ndarray@^0.13
I'm trying to compile the README example, but I'm stubling across this error during compilation, and I'm not familiar enough with Rust to understand what exactly is going wrong.
snd.read_all_to_ndarray().unwrap()
returns anArrayBase<OwnedRepr<_>, Dim<[usize; 2]>>
instead of anArrayBase<OwnedRepr<f32>, Dim<[usize; 2]>>
, but I'm not sure why the compiler can't pick the rightimpl
for this...I'm running