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

Errors trying to build with Rust 1.59.0 #1

Open
nomicode opened this issue Mar 3, 2022 · 0 comments
Open

Errors trying to build with Rust 1.59.0 #1

nomicode opened this issue Mar 3, 2022 · 0 comments

Comments

@nomicode
Copy link

nomicode commented Mar 3, 2022

Hello, I am trying to build the latest release from source using the latest Rust compiler but I am getting errors:

/tmp/fixred-1.1.4 $ rustc --version
rustc 1.59.0 (9d1b2106e 2022-02-23)
/tmp/fixred-1.1.4 $ cargo build
   Compiling fixred v1.1.4 (/tmp/fixred-1.1.4)
warning: use of deprecated struct `clap::App`: Replaced with `Command`
 --> src/main.rs:2:12
  |
2 | use clap::{App, Arg};
  |            ^^^
  |
  = note: `#[warn(deprecated)]` on by default

warning: use of deprecated struct `clap::App`: Replaced with `Command`
  --> src/main.rs:20:19
   |
20 |     let matches = App::new("fixred")
   |                   ^^^

error[E0599]: no method named `about` found for struct `Arg` in the current scope
  --> src/main.rs:39:18
   |
39 |                 .about("Redirect only once when resolving a URL redirect")
   |                  ^^^^^ method not found in `Arg<'_>`

error[E0599]: no method named `about` found for struct `Arg` in the current scope
  --> src/main.rs:47:18
   |
47 |                 .about("Fix URLs which are matched to this pattern"),
   |                  ^^^^^ method not found in `Arg<'_>`

error[E0599]: no method named `about` found for struct `Arg` in the current scope
  --> src/main.rs:55:18
   |
55 |                 .about("Fix URLs which are NOT matched to this pattern"),
   |                  ^^^^^ method not found in `Arg<'_>`

error[E0599]: no method named `about` found for struct `Arg` in the current scope
  --> src/main.rs:59:18
   |
59 |                 .about(
   |                  ^^^^^ method not found in `Arg<'_>`

error[E0599]: no method named `about` found for struct `Arg` in the current scope
  --> src/main.rs:70:18
   |
70 |                 .about("Output verbose log. This is the same as setting \"info\" to $FIXRED_LOG environment variable")
   |                  ^^^^^ method not found in `Arg<'_>`

For more information about this error, try `rustc --explain E0599`.
warning: `fixred` (bin "fixred") generated 2 warnings
error: could not compile `fixred` due to 5 previous errors; 2 warnings emitted
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