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

Update for 2.0.0-beta-1? #2

Closed
seanpianka opened this issue Dec 4, 2020 · 0 comments
Closed

Update for 2.0.0-beta-1? #2

seanpianka opened this issue Dec 4, 2020 · 0 comments

Comments

@seanpianka
Copy link
Member

Code:

// Build router using middleware
Router::builder()
  .middleware(routerify_cors::enable_cors_all())
  .middleware(routerify_query::query_parser())
  .build().unwrap();

Error:

error[E0308]: mismatched types
  --> src/server/mod.rs:82:25
   |
82 |             .middleware(routerify_cors::enable_cors_all())
   |                         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected enum `Middleware`, found enum `routerify::middleware::Middleware`
   |
   = note: expected enum `Middleware<_, _>`
              found enum `routerify::middleware::Middleware<_, _>`
   = note: perhaps two different versions of crate `routerify` are being used?

error[E0308]: mismatched types
  --> src/server/mod.rs:83:25
   |
83 |             .middleware(routerify_query::query_parser())
   |                         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected enum `Middleware`, found enum `routerify::middleware::Middleware`
   |
   = note: expected enum `Middleware<_, _>`
              found enum `routerify::middleware::Middleware<_, _>`
   = note: perhaps two different versions of crate `routerify` are being used?
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

1 participant