Remove unsafe indexing from src/message_pool/msg_chain.rs
and src/message_pool/msgpool/selection.rs
#4229
Labels
Priority: 4 - Low
Limited impact and can be implemented at any time
Ready
Issue is ready for work and anyone can freely assign it to themselves
Issue summary
Both
src/message_pool/msg_chain.rs
andsrc/message_pool/msgpool/selection.rs
had code untouched for years. Now we're using the code again, which needs some love/cleaning. The modules have a lot of unsafe indexing, and they allowclippy::indexing_slicing
.Tasks:
#![allow(clippy::indexing_slicing)]
fromsrc/message_pool/msg_chain.rs
.#![allow(clippy::indexing_slicing)]
fromsrc/message_pool/msgpool/selection.rs
.Other information and links
The text was updated successfully, but these errors were encountered: