Commit 3875abb
authored
refactor(kad): replace BTreeMap::remove(Iter::next_back) with pop_last
Refactor according to note:
https://github.com/libp2p/rust-libp2p/blob/1206fef09885d024323479d0383c37c4fe281c7c/protocols/kad/src/behaviour.rs#L2483-L2489
since rust-lang/rust#62924 has been stabilized.
Pull-Request: #5977.1 parent 0c2ea7c commit 3875abb
1 file changed
+1
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2481 | 2481 | | |
2482 | 2482 | | |
2483 | 2483 | | |
2484 | | - | |
2485 | | - | |
2486 | | - | |
2487 | | - | |
2488 | | - | |
| 2484 | + | |
2489 | 2485 | | |
2490 | 2486 | | |
2491 | 2487 | | |
| |||
0 commit comments