Skip to content
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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(codegen): Deprecate _Inner<T>. #1647

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

gibbz00
Copy link

@gibbz00 gibbz00 commented Mar 3, 2024

Removes a redundant clone in the tower-service::Service::call() implementation, and reduces the amount of generated code. Does not break any user facing API.

Don't know how much the removed clone matters in practice. Perhaps it gets optimized away during compilation regardless 馃檲

Copy link
Contributor

@tottoto tottoto left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks reasonable to me. I left some comments.

tonic-types/src/generated/types.bin Outdated Show resolved Hide resolved
tonic-build/src/server.rs Outdated Show resolved Hide resolved
@gibbz00 gibbz00 force-pushed the deprecate_inner branch 4 times, most recently from caa06e1 to d2d5817 Compare March 4, 2024 07:51
Removes a redundant clone in the `tower-service::Service::call()`
implementation, and reduces the amount of generated code. Does not break
any user facing API.
@tottoto
Copy link
Contributor

tottoto commented Mar 4, 2024

Looks good to me. I would think this simplifies tonic's implementations.

As this does not affect the public APIs of generated codes, this seems not to be a breaking change.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants