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

Failes to compile on Windows #4

Closed
Songtronix opened this issue Jul 14, 2019 · 5 comments
Closed

Failes to compile on Windows #4

Songtronix opened this issue Jul 14, 2019 · 5 comments

Comments

@Songtronix
Copy link

error[E0308]: mismatched types
   --> src\utils.rs:284:5
    |
283 | pub fn dump_image_to_clipboard(image: &DynamicImage) -> Result<(), Error> {
    |                                                         ----------------- expected `std::result::Result<(), failure::Error>` because of return type
284 |     format_err!("This feature hasn't been implemented in your system")
    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected enum `std::result::Result`, found struct `failure::Error`
    |
    = note: expected type `std::result::Result<(), failure::Error>`
               found type `failure::Error`
    = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info)

error: aborting due to previous error

For more information about this error, try `rustc --explain E0308`.
error: Could not compile `silicon`.

Can be fixed by wrapping format_err!() in an Err() like Err(format_err!("This feature hasn't been implemented in your system"))

@Songtronix Songtronix mentioned this issue Jul 14, 2019
6 tasks
@Aloxaf
Copy link
Owner

Aloxaf commented Jul 14, 2019

Thank you. Fixed in b42be97
This is my fault...

@Aloxaf Aloxaf closed this as completed Jul 14, 2019
@Aloxaf Aloxaf reopened this Jul 14, 2019
@Aloxaf
Copy link
Owner

Aloxaf commented Jul 14, 2019

Can it be compiled now?
(I still get error when trying to cross compile it
(But it may be the problem of my toolchain

@Songtronix
Copy link
Author

Songtronix commented Jul 14, 2019

Cross compiling isn't the best experience in Rust....
It compiles just fine but I ran into another issue I currently check for. Will make an Issue once identified.

@Aloxaf
Copy link
Owner

Aloxaf commented Jul 14, 2019

@Songtronix Ok
I think I should try to compile and test it on Windows myself...

@Songtronix
Copy link
Author

@Aloxaf sure go ahead and take a look at #5

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

2 participants