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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tokio-build fails with "transport" feature disabled #94

Closed
daniel5151 opened this issue Oct 23, 2019 · 0 comments · Fixed by #95
Closed

tokio-build fails with "transport" feature disabled #94

daniel5151 opened this issue Oct 23, 2019 · 0 comments · Fixed by #95

Comments

@daniel5151
Copy link
Contributor

daniel5151 commented Oct 23, 2019

Bug Report

Version

0.1.0-alpha.4

Platform

Linux 5.0.0-29-generic Ubuntu SMP Thu Sep 12 13:05:32 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux

Crates

tonic-build

Description

tonic-build fails to compile with the "transport" feature disabled, throwing the following error:

error[E0061]: this function takes 0 parameters but 1 parameter was supplied
  --> /home/.../.cargo/registry/src/git.luolix.top-1ecc6299db9ec823/tonic-build-0.1.0-alpha.4/src/client.rs:10:19
   |
10 |     let connect = generate_connect(&service_ident);
   |                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected 0 parameters
...
69 | fn generate_connect() -> TokenStream {
   | ------------------------------------ defined here

I took a quick glance at the affected code, and it looks like it should be a quick fix :)

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 a pull request may close this issue.

1 participant