Skip to content

compilation error in stage.rs #4

@msugaw

Description

@msugaw

cargo install --path .

terminates with the following error message:

Installing git-toolbox v0.0.9000 (/Users/xxx/yyyy/git-toolbox)
Updating crates.io index
Compiling git-toolbox v0.0.9000 (/Users/xxx/yyyy/git-toolbox)
error[E0308]: mismatched types
--> src/stage.rs:185:52
|
185 | pb.set_draw_target(ProgressDrawTarget::to_term(term.clone(), Some(10)));
| ^^^^^^^^^^^^ expected struct console::term::Term, found struct Term
|
= note: perhaps two different versions of crate console are being used?

error: aborting due to previous error

For more information about this error, try rustc --explain E0308.
error: failed to compile git-toolbox v0.0.9000 (/Users/xxx/yyyy/git-toolbox), intermediate artifacts can be found at /Users/xxx/yyyy/git-toolbox/target

Caused by:
could not compile git-toolbox

To learn more, run the command again with --verbose.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions