error[E0308]: mismatched types
--> /Users/myusername/.cargo/registry/src/github.com-1ecc6299db9ec823/one2html-1.1.1/src/utils.rs:12:41
|
12 | let _state = happylog::set_progress(&bar);
| ---------------------- ^^^^ expected struct `indicatif::progress_bar::ProgressBar`, found struct `ProgressBar`
| |
| arguments to this function are incorrect
|
= note: struct `ProgressBar` and struct `indicatif::progress_bar::ProgressBar` have similar names, but are actually distinct types
note: struct `ProgressBar` is defined in crate `indicatif`
--> /Users/myusername/.cargo/registry/src/github.com-1ecc6299db9ec823/indicatif-0.16.2/src/progress_bar.rs:23:1
|
23 | pub struct ProgressBar {
| ^^^^^^^^^^^^^^^^^^^^^^
note: struct `indicatif::progress_bar::ProgressBar` is defined in crate `indicatif`
--> /Users/myusername/.cargo/registry/src/github.com-1ecc6299db9ec823/indicatif-0.17.3/src/progress_bar.rs:21:1
|
21 | pub struct ProgressBar {
| ^^^^^^^^^^^^^^^^^^^^^^
= note: perhaps two different versions of crate `indicatif` are being used?
note: function defined here
--> /Users/myusername/.cargo/registry/src/github.com-1ecc6299db9ec823/happylog-0.2.0/src/console_emitter.rs:93:8
|
93 | pub fn set_progress(pb: &ProgressBar) -> LogPBState {
| ^^^^^^^^^^^^
For more information about this error, try `rustc --explain E0308`.
Full log
This occurred on stable v1.66.1 (
cargo install --no-default-features one2html
) and v1.69.0-nightly (cargo +nightly install one2html
).