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

Sample is broken #37

Closed
DD5HT opened this issue Jul 22, 2018 · 2 comments
Closed

Sample is broken #37

DD5HT opened this issue Jul 22, 2018 · 2 comments

Comments

@DD5HT
Copy link
Contributor

DD5HT commented Jul 22, 2018

A Static File sample is broken here if I try to compile "# Configuration":

error[E0308]: try expression alternatives have incompatible types
  --> src/main.rs:20:8
   |
20 |     Ok(NamedFile::open_with_config(path, MyConfig)?)
   |        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   |        |
   |        expected struct `actix_web::fs::DefaultConfig`, found struct `MyConfig`
   |        help: try wrapping with a success variant: `Ok(NamedFile::open_with_config(path, MyConfig)?)`
   |
   = note: expected type `actix_web::fs::NamedFile<actix_web::fs::DefaultConfig>`
              found type `actix_web::fs::NamedFile<MyConfig>`

the error message is also broken in Rust, see here rust-lang/rust#52537

@idMysteries
Copy link

Do you know how to fix it? I have this error too

@DoumanAsh
Copy link
Contributor

This was corrected 032afec

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

3 participants