protocols/ping: Properly deprecate types with Ping prefix#2937
protocols/ping: Properly deprecate types with Ping prefix#2937thomaseizinger merged 6 commits intomasterfrom
Ping prefix#2937Conversation
jxs
left a comment
There was a problem hiding this comment.
Hi Thomas, when doing #2927 noticed there are still some references to the deprecated types in the docs, and some types with Ping prefix, should they be addressed?
(sorry for doing it like this, github still doesn't support reviewing on unchanged files nor unchanged code)
docs:
rust-libp2p/protocols/ping/src/lib.rs
Line 29 in a772e5a
rust-libp2p/protocols/ping/src/lib.rs
Line 34 in a772e5a
rust-libp2p/protocols/ping/src/lib.rs
Line 38 in a772e5a
rust-libp2p/protocols/ping/src/handler.rs
Line 59 in a772e5a
rust-libp2p/protocols/ping/src/handler.rs
Line 211 in a772e5a
structs:
rust-libp2p/protocols/ping/src/handler.rs
Line 388 in a772e5a
rust-libp2p/protocols/ping/src/handler.rs
Line 384 in a772e5a
|
What do you think about just removing the deprecated types? They have been marked as deprecated for quite some time now, and upgrading to the new names should be easy. |
They have been incorrectly marked as deprecated :) |
Incorrectly in the sense that users that were still using them did not get a warning? Does the |
Hi Elena, yeah exactly. See #2927 (comment) |
Co-authored-by: Elena Frank <[email protected]>
Yep! Unfortunately, rustdoc doesn't flag links to deprecated items as deprecated. Grml. |
|
Okay, I went across the repo again with fulltext search and found quite a few more usages. I also realised that our CI doesn't check for warnings in examples! I'll see to fix that too. |
Done: #2949 |
jxs
left a comment
There was a problem hiding this comment.
Okay, I went across the repo again with fulltext search and found quite a few more usages.
I also realised that our CI doesn't check for warnings in examples! I'll see to fix that too.
awesome, LGTM!
Did you see the references to PingState and PingFuture ? PingState can be renamed to just State as it isn't shared outside of the module. though PingFuture and PongFuture probably there isn't a better wording for them.
I guess |
Description
The deprecation we tried to do in #2215 doesn't work but defining type aliases works :)
Links to any relevant issues
Open Questions
Change checklist
I have made corresponding changes to the documentationI have added tests that prove my fix is effective or that my feature works