You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// Build router using middlewareRouter::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?
The text was updated successfully, but these errors were encountered:
Code:
Error:
The text was updated successfully, but these errors were encountered: