forest icon indicating copy to clipboard operation
forest copied to clipboard

Remove unsafe indexing from `src/message_pool/msg_chain.rs` and `src/message_pool/msgpool/selection.rs`

Open lemmih opened this issue 4 months ago • 0 comments

Issue summary

Both src/message_pool/msg_chain.rs and src/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 allow clippy::indexing_slicing.

Tasks:

  • [ ] Remove #![allow(clippy::indexing_slicing)] from src/message_pool/msg_chain.rs.
  • [ ] Remove #![allow(clippy::indexing_slicing)] from src/message_pool/msgpool/selection.rs.

Other information and links

lemmih avatar Apr 17 '24 11:04 lemmih