Closed sourcebox closed 1 month ago
Changelog already contains an entry about clippy fixes.
lgtm but there's still more clippy failures, could you fix those?
lgtm but there's still more clippy failures, could you fix those?
There are 2 lints "a const
item should not be interior mutable":
const EMPTY_CELL: Cell<T> = Cell::new(0);
const INIT: UnsafeCell<MaybeUninit<T>> = UnsafeCell::new(MaybeUninit::uninit());
I'm not sure what to do here without breaking something.
Clippy docs just suggest to replace const
with static
.
Clippy docs just suggest to replace
const
withstatic
.
But that doesn't compile, so it's not even an option.
you can remove the const, and do buffer: [const { UnsafeCell::new(MaybeUninit::uninit()) }; N]
. this is inline const block, stabilized in 1.79.
you can remove the const, and do
buffer: [const { UnsafeCell::new(MaybeUninit::uninit()) }; N]
. this is inline const block, stabilized in 1.79.
Thanks. Done.
Checks are finally all passed.
Various documentation fixes for warnings shown by running
cargo clippy
andtypos
.