You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
error: calling `set_len()` immediately after reserving a buffer creates uninitialized values
Error: --> lax/src/lib.rs:179:5
|
179 | let mut v = Vec::with_capacity(n);
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
180 | v.set_len(n);
| ^^^^^^^^^^^^
|
= note: `#[deny(clippy::uninit_vec)]` on by default
= help: initialize the buffer or wrap the content in `MaybeUninit`
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninit_vec
Uh oh!
There was an error while loading. Please reload this page.
From #321 (comment)
as noted in the clippy URL https://rust-lang.github.io/rust-clippy/master/index.html#uninit_vec we should use
Vec<MaybeUninit<T>>
here, but it is not compatible with lapack crate API which requires&[T]
which must be initialized.The text was updated successfully, but these errors were encountered: