Remove unsafe indexing from src/message_pool/msg_chain.rs
and src/message_pool/msgpool/selection.rs
#4229
Labels
src/message_pool/msg_chain.rs
and src/message_pool/msgpool/selection.rs
#4229
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: