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: this call for this type may be undefined behavior
--> src/value.rs:129:42
|
129 | let mut arr: [u8; 12] = unsafe { MaybeUninit::uninit().assume_init() };
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: `#[deny(clippy::uninit_assumed_init)]` on by default
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninit_assumed_init
The text was updated successfully, but these errors were encountered:
I think it's over-warning in this specific case. u8 is never read from and it doesn't implement Drop, it should be safe to assume init. But I'm also OK to change it to meet best practice.
agatedb/src/value.rs
Line 129 in 4aa6420
should change to
or
The text was updated successfully, but these errors were encountered: