rust-libp2p
rust-libp2p copied to clipboard
chore: Fix for Incorrect Object Passing and Loop Control
Description
I noticed a couple of issues in the script:
- The function
fix_unreachable_pub_warningwas receivingm(part of the warning) instead of the fullwarningobject, which caused unexpected behavior. I fixed this by passing the correct object. - The script was using
returnto exit the loop when the code wasn't in the current workspace. I replaced it withcontinueto ensure the loop processes all warnings as intended.
Change checklist
- [x] I have performed a self-review of my own code
- [x] I have made corresponding changes to the documentation
- [x] I have added tests that prove my fix is effective or that my feature works
- [x] A changelog entry has been made in the appropriate crates