Skip to content

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

@montyx99

Description

@montyx99

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`

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions