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

Failed to compile self update feature on MacOS #18

Open
ghost opened this issue Oct 3, 2021 · 0 comments
Open

Failed to compile self update feature on MacOS #18

ghost opened this issue Oct 3, 2021 · 0 comments

Comments

@ghost
Copy link

ghost commented Oct 3, 2021

error logs:

Errors:

error[E0277]: the `?` operator can only be applied to values that implement `Try`
   --> /Users/david/.cargo/registry/src/github.com-1ecc6299db9ec823/migrant-0.14.0/src/main.rs:236:23
    |
236 |     let mut builder = self_update::backends::github::Update::configure()?;
    |                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the `?` operator cannot be applied to type `self_update::backends::github::UpdateBuilder`
    |
    = help: the trait `Try` is not implemented for `self_update::backends::github::UpdateBuilder`
note: required by `branch`

error[E0277]: the `?` operator can only be applied to values that implement `Try`
   --> /Users/david/.cargo/registry/src/github.com-1ecc6299db9ec823/migrant-0.14.0/src/main.rs:241:18
    |
241 |         .target(&self_update::get_target()?)
    |                  ^^^^^^^^^^^^^^^^^^^^^^^^^^ the `?` operator cannot be applied to type `&str`
    |
    = help: the trait `Try` is not implemented for `&str`
note: required by `branch`

For more information about this error, try `rustc --explain E0277`.
error: failed to compile `migrant v0.14.0`, intermediate artifacts can be found at `/var/folders/4x/rsx335ks4gs8xfw9mr4f1ff80000gn/T/cargo-installyQ4dVb`

Caused by:
  could not compile `migrant` due to 2 previous errors
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

0 participants