-
Notifications
You must be signed in to change notification settings - Fork 224
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Address backwards-incompatible clippy warnings in autogenerated code #113
Address backwards-incompatible clippy warnings in autogenerated code #113
Conversation
Note: this is not ready to merge yet. I'm seeing a lot of references to
|
I think this change makes sense. I've been reluctant to diverge from the names used in the analogous capnproto-c++ methods, but making the code idiomatic for Rust is probably more important than that concern. The smoothest way to make the change would be to keep the old methods around and add deprecation annotations on them. Then people could gradually update. We would delete the old methods on the next version bump. |
OK, I added the methods back with deprecation notices. I've also updated the references to the old methods in tests and the readme. |
Hm... we also need to maintain consistency with the methods on the built-in types, of which there are many. For example, |
That makes sense. I got all the methods I could find. I haven't re-generated |
Thanks! |
added some cleanup in e200353 |
…ppy-warnings Address backwards-incompatible clippy warnings in autogenerated code
In conjunction with #112, this addresses all of the clippy warnings I'm seeing for capnpc autogenerated code in my schema, by fixing for https://rust-lang-nursery.github.io/rust-clippy/v0.0.212/index.html#wrong_self_convention
However, this is a breaking change, so it's in a separate PR. Calling code will have to change instances of
as_reader
tointo_reader
, andfrom_server
tointo_client
.