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

progenitor::Generator::new() - missing argument error #4

Open
montyx99 opened this issue May 25, 2023 · 0 comments
Open

progenitor::Generator::new() - missing argument error #4

montyx99 opened this issue May 25, 2023 · 0 comments

Comments

@montyx99
Copy link

Cargo build error
OS: RPI OS 32bit
Host: RPI 4B 8GB RAM
Compile error message:

Compiling zerotier-one-api v1.1.0
error[E0061]: this function takes 1 argument but 0 arguments were supplied
   --> /home/monty/.cargo/registry/src/github.com-1285ae84e5963aae/zerotier-central-api-1.1.0/build.rs:7:25
    |
7   |     let mut generator = progenitor::Generator::new();
    |                         ^^^^^^^^^^^^^^^^^^^^^^^^^^-- an argument of type `&GenerationSettings` is missing
    |
note: associated function defined here
   --> /home/monty/.cargo/registry/src/github.com-1285ae84e5963aae/progenitor-impl-0.3.0/src/lib.rs:175:12
    |
175 |     pub fn new(settings: &GenerationSettings) -> Self {
    |            ^^^
help: provide the argument
    |
7   |     let mut generator = progenitor::Generator::new(/* &GenerationSettings */);
    |                                                   ~~~~~~~~~~~~~~~~~~~~~~~~~~~

error[E0061]: this function takes 1 argument but 0 arguments were supplied
   --> /home/monty/.cargo/registry/src/github.com-1285ae84e5963aae/zerotier-one-api-1.1.0/build.rs:7:25
    |
7   |     let mut generator = progenitor::Generator::new();
    |                         ^^^^^^^^^^^^^^^^^^^^^^^^^^-- an argument of type `&GenerationSettings` is missing
    |
note: associated function defined here
   --> /home/monty/.cargo/registry/src/github.com-1285ae84e5963aae/progenitor-impl-0.3.0/src/lib.rs:175:12
    |
175 |     pub fn new(settings: &GenerationSettings) -> Self {
    |            ^^^
help: provide the argument
    |
7   |     let mut generator = progenitor::Generator::new(/* &GenerationSettings */);
    |                                                   ~~~~~~~~~~~~~~~~~~~~~~~~~~~

error[E0599]: no method named `generate_text` found for struct `progenitor::Generator` in the current scope
 --> /home/monty/.cargo/registry/src/github.com-1285ae84e5963aae/zerotier-central-api-1.1.0/build.rs:9:29
  |
9 |     let content = generator.generate_text(&spec).unwrap();
  |                             ^^^^^^^^^^^^^ help: there is a method with a similar name: `generate_tokens`

error[E0599]: no method named `generate_text` found for struct `progenitor::Generator` in the current scope
 --> /home/monty/.cargo/registry/src/github.com-1285ae84e5963aae/zerotier-one-api-1.1.0/build.rs:9:29
  |
9 |     let content = generator.generate_text(&spec).unwrap();
  |                             ^^^^^^^^^^^^^ help: there is a method with a similar name: `generate_tokens`

Some errors have detailed explanations: E0061, E0599.
For more information about an error, try `rustc --explain E0061`.
error: could not compile `zerotier-central-api` due to 2 previous errors
warning: build failed, waiting for other jobs to finish...
error: could not compile `zerotier-one-api` due to 2 previous errors
error: failed to compile `zeronsd v0.5.0`, intermediate artifacts can be found at `/tmp/cargo-installKl0Uok`
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

No branches or pull requests

1 participant