I'm trying to compile the latest version, but get errors
uname -a
Linux dm 5.18.2-arch1-1 #1 SMP PREEMPT_DYNAMIC Mon, 06 Jun 2022 19:58:58 +0000 x86_64 GNU/Linux
rustc --version
rustc 1.61.0 (Arch Linux rust 1:1.61.0-1)
cargo version
cargo 1.61.0
When I clone and run
cargo build --release
I get this:
cargo build --release
Updating crates.io index
Updating git repository `https://github.com/wojciechkepka/colored`
Compiling libc v0.2.126
Compiling autocfg v1.1.0
Compiling proc-macro2 v1.0.39
Compiling unicode-ident v1.0.0
Compiling syn v1.0.96
Compiling cfg-if v1.0.0
Compiling memchr v2.5.0
Compiling serde_derive v1.0.137
Compiling serde v1.0.137
Compiling log v0.4.17
Compiling hashbrown v0.11.2
Compiling crossbeam-utils v0.8.8
Compiling lazy_static v1.4.0
Compiling regex-syntax v0.6.26
Compiling os_str_bytes v6.1.0
Compiling bitflags v1.3.2
Compiling textwrap v0.15.0
Compiling once_cell v1.12.0
Compiling termcolor v1.1.3
Compiling strsim v0.10.0
Compiling same-file v1.0.6
Compiling fnv v1.0.7
Compiling ppv-lite86 v0.2.16
Compiling linked-hash-map v0.5.4
Compiling anyhow v1.0.57
Compiling half v1.8.2
Compiling ryu v1.0.10
Compiling base64 v0.13.0
Compiling walkdir v2.3.2
Compiling thread_local v1.1.4
Compiling yaml-rust v0.4.5
Compiling clap_lex v0.2.0
Compiling indexmap v1.8.2
Compiling num-traits v0.2.15
Compiling num-integer v0.1.45
Compiling aho-corasick v0.7.18
Compiling bstr v0.2.17
Compiling quote v1.0.18
Compiling atty v0.2.14
Compiling getrandom v0.2.6
Compiling time v0.1.43
Compiling dirs-sys v0.3.7
Compiling clap v3.1.18
Compiling dirs v3.0.2
Compiling rand_core v0.6.3
Compiling rand_chacha v0.3.1
Compiling rand v0.8.5
Compiling regex v1.5.6
Compiling clap_complete v3.1.4
Compiling clap_generate v3.0.3
Compiling globset v0.4.9
Compiling thiserror-impl v1.0.31
Compiling ignore v0.4.18
Compiling globwalk v0.8.1
Compiling thiserror v1.0.31
Compiling chrono v0.4.19
Compiling serde_cbor v0.11.2
Compiling serde_yaml v0.8.24
Compiling colored v2.0.0 (https://github.com/wojciechkepka/colored?branch=master#24f77eda)
Compiling wutag v0.4.0 (/home/dm/opt/wutag)
error[E0432]: unresolved import `clap::Clap`
--> src/opt.rs:5:25
|
5 | use clap::{AppSettings, Clap};
| ^^^^ no `Clap` in the root
error[E0432]: unresolved import `clap::Clap`
--> src/main.rs:7:5
|
7 | use clap::Clap;
| ^^^^^^^^^^ no `Clap` in the root
error: cannot determine resolution for the derive macro `Clap`
--> src/opt.rs:12:10
|
12 | #[derive(Clap)]
| ^^^^
|
= note: import resolution is stuck, try simplifying macro imports
error: cannot find attribute `clap` in this scope
--> src/opt.rs:13:3
|
13 | #[clap(
| ^^^^
|
= note: `clap` is in scope, but it is a crate, not an attribute
error: cannot find attribute `clap` in this scope
--> src/opt.rs:21:7
|
21 | #[clap(short, long)]
| ^^^^
|
= note: `clap` is in scope, but it is a crate, not an attribute
error: cannot find attribute `clap` in this scope
--> src/opt.rs:26:7
|
26 | #[clap(long, short)]
| ^^^^
|
= note: `clap` is in scope, but it is a crate, not an attribute
error: cannot find attribute `clap` in this scope
--> src/opt.rs:32:7
|
32 | #[clap(long, short)]
| ^^^^
|
= note: `clap` is in scope, but it is a crate, not an attribute
error: cannot find attribute `clap` in this scope
--> src/opt.rs:34:7
|
34 | #[clap(subcommand)]
| ^^^^
|
= note: `clap` is in scope, but it is a crate, not an attribute
error: cannot determine resolution for the derive macro `Clap`
--> src/opt.rs:38:10
|
38 | #[derive(Clap)]
| ^^^^
|
= note: import resolution is stuck, try simplifying macro imports
error: cannot find attribute `clap` in this scope
--> src/opt.rs:42:11
|
42 | #[clap(long, short = 't')]
| ^^^^
|
= note: `clap` is in scope, but it is a crate, not an attribute
error: cannot determine resolution for the derive macro `Clap`
--> src/opt.rs:48:10
|
48 | #[derive(Clap)]
| ^^^^
|
= note: import resolution is stuck, try simplifying macro imports
error: cannot find attribute `clap` in this scope
--> src/opt.rs:50:7
|
50 | #[clap(subcommand)]
| ^^^^
|
= note: `clap` is in scope, but it is a crate, not an attribute
error: cannot find attribute `clap` in this scope
--> src/opt.rs:53:7
|
53 | #[clap(long, short)]
| ^^^^
|
= note: `clap` is in scope, but it is a crate, not an attribute
error: cannot determine resolution for the derive macro `Clap`
--> src/opt.rs:58:10
|
58 | #[derive(Clap)]
| ^^^^
|
= note: import resolution is stuck, try simplifying macro imports
error: cannot find attribute `clap` in this scope
--> src/opt.rs:62:7
|
62 | #[clap(required = true)]
| ^^^^
|
= note: `clap` is in scope, but it is a crate, not an attribute
error: cannot determine resolution for the derive macro `Clap`
--> src/opt.rs:66:10
|
66 | #[derive(Clap)]
| ^^^^
|
= note: import resolution is stuck, try simplifying macro imports
error: cannot determine resolution for the derive macro `Clap`
--> src/opt.rs:73:10
|
73 | #[derive(Clap)]
| ^^^^
|
= note: import resolution is stuck, try simplifying macro imports
error: cannot determine resolution for the derive macro `Clap`
--> src/opt.rs:78:10
|
78 | #[derive(Clap)]
| ^^^^
|
= note: import resolution is stuck, try simplifying macro imports
error: cannot find attribute `clap` in this scope
--> src/opt.rs:80:7
|
80 | #[clap(required = true)]
| ^^^^
|
= note: `clap` is in scope, but it is a crate, not an attribute
error: cannot find attribute `clap` in this scope
--> src/opt.rs:82:7
|
82 | #[clap(long, short)]
| ^^^^
|
= note: `clap` is in scope, but it is a crate, not an attribute
error: cannot find attribute `clap` in this scope
--> src/opt.rs:85:7
|
85 | #[clap(long, short)]
| ^^^^
|
= note: `clap` is in scope, but it is a crate, not an attribute
error: cannot determine resolution for the derive macro `Clap`
--> src/opt.rs:90:10
|
90 | #[derive(Clap)]
| ^^^^
|
= note: import resolution is stuck, try simplifying macro imports
error: cannot determine resolution for the derive macro `Clap`
--> src/opt.rs:98:10
|
98 | #[derive(Clap)]
| ^^^^
|
= note: import resolution is stuck, try simplifying macro imports
error: cannot find attribute `clap` in this scope
--> src/opt.rs:102:7
|
102 | #[clap(long, short)]
| ^^^^
|
= note: `clap` is in scope, but it is a crate, not an attribute
error: cannot determine resolution for the derive macro `Clap`
--> src/opt.rs:109:10
|
109 | #[derive(Clap)]
| ^^^^
|
= note: import resolution is stuck, try simplifying macro imports
error: cannot determine resolution for the derive macro `Clap`
--> src/opt.rs:133:10
|
133 | #[derive(Clap)]
| ^^^^
|
= note: import resolution is stuck, try simplifying macro imports
error: cannot determine resolution for the derive macro `Clap`
--> src/opt.rs:140:10
|
140 | #[derive(Clap)]
| ^^^^
|
= note: import resolution is stuck, try simplifying macro imports
warning: unused import: `AppSettings`
--> src/opt.rs:5:12
|
5 | use clap::{AppSettings, Clap};
| ^^^^^^^^^^^
|
= note: `#[warn(unused_imports)]` on by default
warning: use of deprecated function `clap_generate::generate`: Renamed to `clap_complete`
--> src/app.rs:374:13
|
374 | generate,
| ^^^^^^^^
|
= note: `#[warn(deprecated)]` on by default
warning: use of deprecated function `clap_generate::generate`: Renamed to `clap_complete`
--> src/app.rs:381:28
|
381 | Shell::Bash => generate::<Bash, _>(&mut app, APP_NAME, &mut io::stdout()),
| ^^^^^^^^
warning: use of deprecated function `clap_generate::generate`: Renamed to `clap_complete`
--> src/app.rs:382:30
|
382 | Shell::Elvish => generate::<Elvish, _>(&mut app, APP_NAME, &mut io::stdout()),
| ^^^^^^^^
warning: use of deprecated function `clap_generate::generate`: Renamed to `clap_complete`
--> src/app.rs:383:28
|
383 | Shell::Fish => generate::<Fish, _>(&mut app, APP_NAME, &mut io::stdout()),
| ^^^^^^^^
warning: use of deprecated function `clap_generate::generate`: Renamed to `clap_complete`
--> src/app.rs:384:34
|
384 | Shell::PowerShell => generate::<PowerShell, _>(&mut app, APP_NAME, &mut io::stdout()),
| ^^^^^^^^
warning: use of deprecated function `clap_generate::generate`: Renamed to `clap_complete`
--> src/app.rs:385:27
|
385 | Shell::Zsh => generate::<Zsh, _>(&mut app, APP_NAME, &mut io::stdout()),
| ^^^^^^^^
error[E0599]: no function or associated item named `into_app` found for struct `Opts` in the current scope
--> src/app.rs:378:29
|
378 | let mut app = Opts::into_app();
| ^^^^^^^^ function or associated item not found in `Opts`
|
::: src/opt.rs:20:1
|
20 | pub struct Opts {
| --------------- function or associated item `into_app` not found for this
|
= help: items from traits can only be used if the trait is implemented and in scope
= note: the following trait defines an item `into_app`, perhaps you need to implement it:
candidate #1: `CommandFactory`
error[E0061]: this function takes 4 arguments but 3 arguments were supplied
--> src/app.rs:381:28
|
381 | Shell::Bash => generate::<Bash, _>(&mut app, APP_NAME, &mut io::stdout()),
| ^^^^^^^^^^^^^^^^^^^ -------- -------- ----------------- supplied 3 arguments
| |
| expected 4 arguments
|
note: function defined here
--> /home/dm/.cargo/registry/src/github.com-1ecc6299db9ec823/clap_generate-3.0.3/src/lib.rs:38:8
|
38 | pub fn generate<G, S>(gen: G, app: &mut clap::App, bin_name: S, buf: &mut dyn Write)
| ^^^^^^^^
error[E0061]: this function takes 4 arguments but 3 arguments were supplied
--> src/app.rs:382:30
|
382 | Shell::Elvish => generate::<Elvish, _>(&mut app, APP_NAME, &mut io::stdout()),
| ^^^^^^^^^^^^^^^^^^^^^ -------- -------- ----------------- supplied 3 arguments
| |
| expected 4 arguments
|
note: function defined here
--> /home/dm/.cargo/registry/src/github.com-1ecc6299db9ec823/clap_generate-3.0.3/src/lib.rs:38:8
|
38 | pub fn generate<G, S>(gen: G, app: &mut clap::App, bin_name: S, buf: &mut dyn Write)
| ^^^^^^^^
error[E0061]: this function takes 4 arguments but 3 arguments were supplied
--> src/app.rs:383:28
|
383 | Shell::Fish => generate::<Fish, _>(&mut app, APP_NAME, &mut io::stdout()),
| ^^^^^^^^^^^^^^^^^^^ -------- -------- ----------------- supplied 3 arguments
| |
| expected 4 arguments
|
note: function defined here
--> /home/dm/.cargo/registry/src/github.com-1ecc6299db9ec823/clap_generate-3.0.3/src/lib.rs:38:8
|
38 | pub fn generate<G, S>(gen: G, app: &mut clap::App, bin_name: S, buf: &mut dyn Write)
| ^^^^^^^^
error[E0061]: this function takes 4 arguments but 3 arguments were supplied
--> src/app.rs:384:34
|
384 | Shell::PowerShell => generate::<PowerShell, _>(&mut app, APP_NAME, &mut io::stdout()),
| ^^^^^^^^^^^^^^^^^^^^^^^^^ -------- -------- ----------------- supplied 3 arguments
| |
| expected 4 arguments
|
note: function defined here
--> /home/dm/.cargo/registry/src/github.com-1ecc6299db9ec823/clap_generate-3.0.3/src/lib.rs:38:8
|
38 | pub fn generate<G, S>(gen: G, app: &mut clap::App, bin_name: S, buf: &mut dyn Write)
| ^^^^^^^^
error[E0061]: this function takes 4 arguments but 3 arguments were supplied
--> src/app.rs:385:27
|
385 | Shell::Zsh => generate::<Zsh, _>(&mut app, APP_NAME, &mut io::stdout()),
| ^^^^^^^^^^^^^^^^^^ -------- -------- ----------------- supplied 3 arguments
| |
| expected 4 arguments
|
note: function defined here
--> /home/dm/.cargo/registry/src/github.com-1ecc6299db9ec823/clap_generate-3.0.3/src/lib.rs:38:8
|
38 | pub fn generate<G, S>(gen: G, app: &mut clap::App, bin_name: S, buf: &mut dyn Write)
| ^^^^^^^^
error[E0599]: no function or associated item named `parse` found for struct `Opts` in the current scope
--> src/main.rs:36:36
|
36 | if let Err(e) = App::run(Opts::parse(), config) {
| ^^^^^ function or associated item not found in `Opts`
|
::: src/opt.rs:20:1
|
20 | pub struct Opts {
| --------------- function or associated item `parse` not found for this
|
= help: items from traits can only be used if the trait is implemented and in scope
= note: the following trait defines an item `parse`, perhaps you need to implement it:
candidate #1: `Parser`
warning: unused import: `clap::IntoApp`
--> src/app.rs:2:5
|
2 | use clap::IntoApp;
| ^^^^^^^^^^^^^
Some errors have detailed explanations: E0061, E0432, E0599.
For more information about an error, try `rustc --explain E0061`.
warning: `wutag` (bin "wutag") generated 8 warnings
error: could not compile `wutag` due to 34 previous errors; 8 warnings emittedcargo build --release
Updating crates.io index
Updating git repository `https://github.com/wojciechkepka/colored`
Compiling libc v0.2.126
Compiling autocfg v1.1.0
Compiling proc-macro2 v1.0.39
Compiling unicode-ident v1.0.0
Compiling syn v1.0.96
Compiling cfg-if v1.0.0
Compiling memchr v2.5.0
Compiling serde_derive v1.0.137
Compiling serde v1.0.137
Compiling log v0.4.17
Compiling hashbrown v0.11.2
Compiling crossbeam-utils v0.8.8
Compiling lazy_static v1.4.0
Compiling regex-syntax v0.6.26
Compiling os_str_bytes v6.1.0
Compiling bitflags v1.3.2
Compiling textwrap v0.15.0
Compiling once_cell v1.12.0
Compiling termcolor v1.1.3
Compiling strsim v0.10.0
Compiling same-file v1.0.6
Compiling fnv v1.0.7
Compiling ppv-lite86 v0.2.16
Compiling linked-hash-map v0.5.4
Compiling anyhow v1.0.57
Compiling half v1.8.2
Compiling ryu v1.0.10
Compiling base64 v0.13.0
Compiling walkdir v2.3.2
Compiling thread_local v1.1.4
Compiling yaml-rust v0.4.5
Compiling clap_lex v0.2.0
Compiling indexmap v1.8.2
Compiling num-traits v0.2.15
Compiling num-integer v0.1.45
Compiling aho-corasick v0.7.18
Compiling bstr v0.2.17
Compiling quote v1.0.18
Compiling atty v0.2.14
Compiling getrandom v0.2.6
Compiling time v0.1.43
Compiling dirs-sys v0.3.7
Compiling clap v3.1.18
Compiling dirs v3.0.2
Compiling rand_core v0.6.3
Compiling rand_chacha v0.3.1
Compiling rand v0.8.5
Compiling regex v1.5.6
Compiling clap_complete v3.1.4
Compiling clap_generate v3.0.3
Compiling globset v0.4.9
Compiling thiserror-impl v1.0.31
Compiling ignore v0.4.18
Compiling globwalk v0.8.1
Compiling thiserror v1.0.31
Compiling chrono v0.4.19
Compiling serde_cbor v0.11.2
Compiling serde_yaml v0.8.24
Compiling colored v2.0.0 (https://github.com/wojciechkepka/colored?branch=master#24f77eda)
Compiling wutag v0.4.0 (/home/dm/opt/wutag)
error[E0432]: unresolved import `clap::Clap`
--> src/opt.rs:5:25
|
5 | use clap::{AppSettings, Clap};
| ^^^^ no `Clap` in the root
error[E0432]: unresolved import `clap::Clap`
--> src/main.rs:7:5
|
7 | use clap::Clap;
| ^^^^^^^^^^ no `Clap` in the root
error: cannot determine resolution for the derive macro `Clap`
--> src/opt.rs:12:10
|
12 | #[derive(Clap)]
| ^^^^
|
= note: import resolution is stuck, try simplifying macro imports
error: cannot find attribute `clap` in this scope
--> src/opt.rs:13:3
|
13 | #[clap(
| ^^^^
|
= note: `clap` is in scope, but it is a crate, not an attribute
error: cannot find attribute `clap` in this scope
--> src/opt.rs:21:7
|
21 | #[clap(short, long)]
| ^^^^
|
= note: `clap` is in scope, but it is a crate, not an attribute
error: cannot find attribute `clap` in this scope
--> src/opt.rs:26:7
|
26 | #[clap(long, short)]
| ^^^^
|
= note: `clap` is in scope, but it is a crate, not an attribute
error: cannot find attribute `clap` in this scope
--> src/opt.rs:32:7
|
32 | #[clap(long, short)]
| ^^^^
|
= note: `clap` is in scope, but it is a crate, not an attribute
error: cannot find attribute `clap` in this scope
--> src/opt.rs:34:7
|
34 | #[clap(subcommand)]
| ^^^^
|
= note: `clap` is in scope, but it is a crate, not an attribute
error: cannot determine resolution for the derive macro `Clap`
--> src/opt.rs:38:10
|
38 | #[derive(Clap)]
| ^^^^
|
= note: import resolution is stuck, try simplifying macro imports
error: cannot find attribute `clap` in this scope
--> src/opt.rs:42:11
|
42 | #[clap(long, short = 't')]
| ^^^^
|
= note: `clap` is in scope, but it is a crate, not an attribute
error: cannot determine resolution for the derive macro `Clap`
--> src/opt.rs:48:10
|
48 | #[derive(Clap)]
| ^^^^
|
= note: import resolution is stuck, try simplifying macro imports
error: cannot find attribute `clap` in this scope
--> src/opt.rs:50:7
|
50 | #[clap(subcommand)]
| ^^^^
|
= note: `clap` is in scope, but it is a crate, not an attribute
error: cannot find attribute `clap` in this scope
--> src/opt.rs:53:7
|
53 | #[clap(long, short)]
| ^^^^
|
= note: `clap` is in scope, but it is a crate, not an attribute
error: cannot determine resolution for the derive macro `Clap`
--> src/opt.rs:58:10
|
58 | #[derive(Clap)]
| ^^^^
|
= note: import resolution is stuck, try simplifying macro imports
error: cannot find attribute `clap` in this scope
--> src/opt.rs:62:7
|
62 | #[clap(required = true)]
| ^^^^
|
= note: `clap` is in scope, but it is a crate, not an attribute
error: cannot determine resolution for the derive macro `Clap`
--> src/opt.rs:66:10
|
66 | #[derive(Clap)]
| ^^^^
|
= note: import resolution is stuck, try simplifying macro imports
error: cannot determine resolution for the derive macro `Clap`
--> src/opt.rs:73:10
|
73 | #[derive(Clap)]
| ^^^^
|
= note: import resolution is stuck, try simplifying macro imports
error: cannot determine resolution for the derive macro `Clap`
--> src/opt.rs:78:10
|
78 | #[derive(Clap)]
| ^^^^
|
= note: import resolution is stuck, try simplifying macro imports
error: cannot find attribute `clap` in this scope
--> src/opt.rs:80:7
|
80 | #[clap(required = true)]
| ^^^^
|
= note: `clap` is in scope, but it is a crate, not an attribute
error: cannot find attribute `clap` in this scope
--> src/opt.rs:82:7
|
82 | #[clap(long, short)]
| ^^^^
|
= note: `clap` is in scope, but it is a crate, not an attribute
error: cannot find attribute `clap` in this scope
--> src/opt.rs:85:7
|
85 | #[clap(long, short)]
| ^^^^
|
= note: `clap` is in scope, but it is a crate, not an attribute
error: cannot determine resolution for the derive macro `Clap`
--> src/opt.rs:90:10
|
90 | #[derive(Clap)]
| ^^^^
|
= note: import resolution is stuck, try simplifying macro imports
error: cannot determine resolution for the derive macro `Clap`
--> src/opt.rs:98:10
|
98 | #[derive(Clap)]
| ^^^^
|
= note: import resolution is stuck, try simplifying macro imports
error: cannot find attribute `clap` in this scope
--> src/opt.rs:102:7
|
102 | #[clap(long, short)]
| ^^^^
|
= note: `clap` is in scope, but it is a crate, not an attribute
error: cannot determine resolution for the derive macro `Clap`
--> src/opt.rs:109:10
|
109 | #[derive(Clap)]
| ^^^^
|
= note: import resolution is stuck, try simplifying macro imports
error: cannot determine resolution for the derive macro `Clap`
--> src/opt.rs:133:10
|
133 | #[derive(Clap)]
| ^^^^
|
= note: import resolution is stuck, try simplifying macro imports
error: cannot determine resolution for the derive macro `Clap`
--> src/opt.rs:140:10
|
140 | #[derive(Clap)]
| ^^^^
|
= note: import resolution is stuck, try simplifying macro imports
warning: unused import: `AppSettings`
--> src/opt.rs:5:12
|
5 | use clap::{AppSettings, Clap};
| ^^^^^^^^^^^
|
= note: `#[warn(unused_imports)]` on by default
warning: use of deprecated function `clap_generate::generate`: Renamed to `clap_complete`
--> src/app.rs:374:13
|
374 | generate,
| ^^^^^^^^
|
= note: `#[warn(deprecated)]` on by default
warning: use of deprecated function `clap_generate::generate`: Renamed to `clap_complete`
--> src/app.rs:381:28
|
381 | Shell::Bash => generate::<Bash, _>(&mut app, APP_NAME, &mut io::stdout()),
| ^^^^^^^^
warning: use of deprecated function `clap_generate::generate`: Renamed to `clap_complete`
--> src/app.rs:382:30
|
382 | Shell::Elvish => generate::<Elvish, _>(&mut app, APP_NAME, &mut io::stdout()),
| ^^^^^^^^
warning: use of deprecated function `clap_generate::generate`: Renamed to `clap_complete`
--> src/app.rs:383:28
|
383 | Shell::Fish => generate::<Fish, _>(&mut app, APP_NAME, &mut io::stdout()),
| ^^^^^^^^
warning: use of deprecated function `clap_generate::generate`: Renamed to `clap_complete`
--> src/app.rs:384:34
|
384 | Shell::PowerShell => generate::<PowerShell, _>(&mut app, APP_NAME, &mut io::stdout()),
| ^^^^^^^^
warning: use of deprecated function `clap_generate::generate`: Renamed to `clap_complete`
--> src/app.rs:385:27
|
385 | Shell::Zsh => generate::<Zsh, _>(&mut app, APP_NAME, &mut io::stdout()),
| ^^^^^^^^
error[E0599]: no function or associated item named `into_app` found for struct `Opts` in the current scope
--> src/app.rs:378:29
|
378 | let mut app = Opts::into_app();
| ^^^^^^^^ function or associated item not found in `Opts`
|
::: src/opt.rs:20:1
|
20 | pub struct Opts {
| --------------- function or associated item `into_app` not found for this
|
= help: items from traits can only be used if the trait is implemented and in scope
= note: the following trait defines an item `into_app`, perhaps you need to implement it:
candidate #1: `CommandFactory`
error[E0061]: this function takes 4 arguments but 3 arguments were supplied
--> src/app.rs:381:28
|
381 | Shell::Bash => generate::<Bash, _>(&mut app, APP_NAME, &mut io::stdout()),
| ^^^^^^^^^^^^^^^^^^^ -------- -------- ----------------- supplied 3 arguments
| |
| expected 4 arguments
|
note: function defined here
--> /home/dm/.cargo/registry/src/github.com-1ecc6299db9ec823/clap_generate-3.0.3/src/lib.rs:38:8
|
38 | pub fn generate<G, S>(gen: G, app: &mut clap::App, bin_name: S, buf: &mut dyn Write)
| ^^^^^^^^
error[E0061]: this function takes 4 arguments but 3 arguments were supplied
--> src/app.rs:382:30
|
382 | Shell::Elvish => generate::<Elvish, _>(&mut app, APP_NAME, &mut io::stdout()),
| ^^^^^^^^^^^^^^^^^^^^^ -------- -------- ----------------- supplied 3 arguments
| |
| expected 4 arguments
|
note: function defined here
--> /home/dm/.cargo/registry/src/github.com-1ecc6299db9ec823/clap_generate-3.0.3/src/lib.rs:38:8
|
38 | pub fn generate<G, S>(gen: G, app: &mut clap::App, bin_name: S, buf: &mut dyn Write)
| ^^^^^^^^
error[E0061]: this function takes 4 arguments but 3 arguments were supplied
--> src/app.rs:383:28
|
383 | Shell::Fish => generate::<Fish, _>(&mut app, APP_NAME, &mut io::stdout()),
| ^^^^^^^^^^^^^^^^^^^ -------- -------- ----------------- supplied 3 arguments
| |
| expected 4 arguments
|
note: function defined here
--> /home/dm/.cargo/registry/src/github.com-1ecc6299db9ec823/clap_generate-3.0.3/src/lib.rs:38:8
|
38 | pub fn generate<G, S>(gen: G, app: &mut clap::App, bin_name: S, buf: &mut dyn Write)
| ^^^^^^^^
error[E0061]: this function takes 4 arguments but 3 arguments were supplied
--> src/app.rs:384:34
|
384 | Shell::PowerShell => generate::<PowerShell, _>(&mut app, APP_NAME, &mut io::stdout()),
| ^^^^^^^^^^^^^^^^^^^^^^^^^ -------- -------- ----------------- supplied 3 arguments
| |
| expected 4 arguments
|
note: function defined here
--> /home/dm/.cargo/registry/src/github.com-1ecc6299db9ec823/clap_generate-3.0.3/src/lib.rs:38:8
|
38 | pub fn generate<G, S>(gen: G, app: &mut clap::App, bin_name: S, buf: &mut dyn Write)
| ^^^^^^^^
error[E0061]: this function takes 4 arguments but 3 arguments were supplied
--> src/app.rs:385:27
|
385 | Shell::Zsh => generate::<Zsh, _>(&mut app, APP_NAME, &mut io::stdout()),
| ^^^^^^^^^^^^^^^^^^ -------- -------- ----------------- supplied 3 arguments
| |
| expected 4 arguments
|
note: function defined here
--> /home/dm/.cargo/registry/src/github.com-1ecc6299db9ec823/clap_generate-3.0.3/src/lib.rs:38:8
|
38 | pub fn generate<G, S>(gen: G, app: &mut clap::App, bin_name: S, buf: &mut dyn Write)
| ^^^^^^^^
error[E0599]: no function or associated item named `parse` found for struct `Opts` in the current scope
--> src/main.rs:36:36
|
36 | if let Err(e) = App::run(Opts::parse(), config) {
| ^^^^^ function or associated item not found in `Opts`
|
::: src/opt.rs:20:1
|
20 | pub struct Opts {
| --------------- function or associated item `parse` not found for this
|
= help: items from traits can only be used if the trait is implemented and in scope
= note: the following trait defines an item `parse`, perhaps you need to implement it:
candidate #1: `Parser`
warning: unused import: `clap::IntoApp`
--> src/app.rs:2:5
|
2 | use clap::IntoApp;
| ^^^^^^^^^^^^^
Some errors have detailed explanations: E0061, E0432, E0599.
For more information about an error, try `rustc --explain E0061`.
warning: `wutag` (bin "wutag") generated 8 warnings
error: could not compile `wutag` due to 34 previous errors; 8 warnings emitted